Converts a character data string to a TIMESTAMP or TIMESTAMP WITH TIME ZONE value.
CAST Syntax
CAST ( character_expression AS TIMESTAMP [ ( fractional_seconds_precision ) ] [ WITH TIME ZONE ] [ data_attribute [...] ] )
- character_expression
-
A character expression to be converted.
- fractional_seconds_precision
-
A single digit representing the number of significant digits in the fractional portion of the SECOND field. The valid range is 0 through 6. The default is 6.
- data_attribute
- One of the following data attributes:
- FORMAT
- NAMED
- TITLE