ANSI Compliance
This statement is ANSI SQL:2011 compliant.
As an extension to ANSI, CAST permits the use of data attribute phrases such as FORMAT.
Syntax
CAST ( numeric_expression AS character_data_type [ data_attribute [...] ] )
Syntax Elements
- numeric_expression
- The numeric data expression to be cast to a character type.
- character_data_type
The data type to which the expression is to be converted.
- data_attribute
- One of the following data attributes:
- CHARACTER SET
- FORMAT
- NAMED
- TITLE