Teradata Conversion Syntax - 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ā„¢
date_expression (
  [ data_attribute [,...] ] TIMESTAMP
  [ ( fractional_seconds_precision ) ]
  [, WITH TIME ZONE ]
  [ AT { LOCAL | [ TIME ZONE ] { expression | time_zone_string } } ]
  [, data_attribute [,...] ]
)
date_expression

A date expression to be converted.

data_attribute
One of the following data attributes:
  • FORMAT
  • NAMED
  • TITLE
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.

AT LOCAL

Use the time zone displacement based on the current session time zone.

AT [TIME ZONE] expression

Use the time zone displacement defined by expression.

The data type of expression should be INTERVAL HOUR(2) TO MINUTE or it must be a data type that can be implicitly converted to INTERVAL HOUR(2) TO MINUTE.

AT [TIME ZONE] time_zone_string
time_zone_string determines the time zone displacement.