Convert an INTERVAL with only one field to an exact numeric data type.
This numeric value is the value of the single numeric field in the INTERVAL record.
CAST Syntax
CAST ( interval_expression AS numeric_data_type [ data_attribute [...] ] )
- interval_expression
-
An INTERVAL expression to be converted.
- numeric_data_type
-
The data type to which the expression is to be converted.
- data_attribute
- One of the following data attributes:
- FORMAT
- NAMED
- TITLE