Compatible Types - 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ā„¢

The following table describes the allowed combinations of source and target types when both the source and the target types are Period data types.

Source Type Target Type
PERIOD(DATE) PERIOD(DATE)
PERIOD(TIMESTAMP[(m)] [WITH TIME ZONE])
PERIOD(TIME[(n)] [WITH TIME ZONE]) PERIOD(TIME[(m)] [WITH TIME ZONE])

where m is the target precision, m must be greater than or equal to the source precision n. The default for m is 6.

PERIOD(TIMESTAMP[(m )] [WITH TIME ZONE])

where m is the target precision, m must be greater than or equal to the source precision n. The default for m is 6.

PERIOD(TIMESTAMP[(n)] WITH TIME ZONE) PERIOD(DATE)
PERIOD(TIME[(m)] [WITH TIME ZONE])

where m is the target precision, m must be greater than or equal to the source precision n. The default for m is 6.

PERIOD(TIMESTAMP[(m)] [WITH TIME ZONE])

where m is the target precision, m must be greater than or equal to the source precision n. The default for m is 6.