Conversion Functions
The conversion functions allow you to manipulate the data types when retrieving data from the Query service.
Function | Return Type | Input Arguments | Description |
---|---|---|---|
cast(value as datatype) |
|
| Use this function to convert an input value to specified datatype. The supported datatypes for conversion are varchar, integer, real, double, and fixed-precision decimal. For example:
|
try_cast(value as datatype) |
|
| Use this function to convert an input value to specified datatype. The supported datatypes for conversion are varchar, integer, real, double, and fixed-precision decimal. Returns null if the cast fails. For example:
|
typeof(arg) | Data type of the input argument |
| Returns the data type of the input argument. For example:
|