Remove unwanted images (#35797)
This commit is contained in:
committed by
The Coding Aviator
parent
f09798b7c4
commit
527dd68f01
@ -15,30 +15,28 @@ Converts from one data type to another data type.
|
|||||||
|
|
||||||
`SELECT CONVERT(INT, 23.456) as IntegerNumber`
|
`SELECT CONVERT(INT, 23.456) as IntegerNumber`
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
Note: The result is truncated.
|
Note: The result is truncated.
|
||||||
|
|
||||||
### Example: Convert a String to a Date
|
### Example: Convert a String to a Date
|
||||||
`SELECT CONVERT(DATE, '20161030') as Date`
|
`SELECT CONVERT(DATE, '20161030') as Date`
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
|
|
||||||
### Example: Convert a Decimal to a String
|
### Example: Convert a Decimal to a String
|
||||||
`SELECT CONVERT(nvarchar, 20.123) as StringData`
|
`SELECT CONVERT(nvarchar, 20.123) as StringData`
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
### Example: Convert an Integer Number to a Decimal Number
|
### Example: Convert an Integer Number to a Decimal Number
|
||||||
`SELECT CONVERT(DECIMAL (15,3), 13) as DecimalNumber`
|
`SELECT CONVERT(DECIMAL (15,3), 13) as DecimalNumber`
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
### Example: Convert a String to Date Format in USA Date Style
|
### Example: Convert a String to Date Format in USA Date Style
|
||||||
`SELECT CONVERT(DATE, '20171030' , 110) To_USA_DateFormat`
|
`SELECT CONVERT(DATE, '20171030' , 110) To_USA_DateFormat`
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
### More Information:
|
### More Information:
|
||||||
- Information on Convert function: <a href='https://docs.microsoft.com/en-us/sql/t-sql/functions/cast-and-convert-transact-sql' target='_blank' rel='nofollow'>Microsoft</a>
|
- Information on Convert function: <a href='https://docs.microsoft.com/en-us/sql/t-sql/functions/cast-and-convert-transact-sql' target='_blank' rel='nofollow'>Microsoft</a>
|
||||||
|
Reference in New Issue
Block a user