Example
Convert a value to a DATE datatype:
SELECT CAST("2017-08-29" AS DATE);
Definition and Usage
The CAST() function converts a value (of any type) into the specified datatype.
Syntax
CAST(value AS datatype)
Convert a value to a DATE datatype:
SELECT CAST("2017-08-29" AS DATE);
The CAST() function converts a value (of any type) into the specified datatype.
CAST(value AS datatype)