Character-to-TIMESTAMP Conversion | Data Types and Literals | Teradata Vantage - Character-to-TIMESTAMP Conversion - Advanced SQL Engine - Teradata Database

SQL Data Types and Literals

Product
Advanced SQL Engine
Teradata Database
Release Number
17.05
17.00
Published
June 2020
Language
English (United States)
Last Update
2021-01-22
dita:mapPath
zsn1556242031050.ditamap
dita:ditavalPath
lze1555437562152.ditaval
dita:id
B035-1143
lifecycle
previous
Product Category
Teradata Vantageā„¢

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