Syntax
CAST ( expression AS { ansi_sql_data_type | data_definition_list } )
Syntax Elements
- expression
An expression with known data type to be cast as a different data type.
- ansi_sql_data_type
The new data type for expression.
- data_definition_list
The new data type or data attributes or both for expression.