ANSI Compliance
This statement is ANSI SQL:2011 compliant.
As an extension to ANSI, CAST permits the use of interval data attribute phrases.
Syntax
CAST ( numeric_expression AS interval_data_type [ data_attribute [...] ] )
Syntax Elements
- numeric_expression
- An expression or existing field having a numeric data type.
- interval_data_type
The data type to which the expression is to be converted.
- data_attribute
- One of the following data attributes:
- NAMED
- TITLE