External Representation of INTERVAL DAY TO SECOND - Teradata Vantage

Teradata® VantageCloud Lake

Deployment
VantageCloud
Edition
Lake
Product
Teradata Vantage
Published
January 2023
ft:locale
en-US
ft:lastEdition
2024-12-11
dita:mapPath
phg1621910019905.ditamap
dita:ditavalPath
pny1626732985837.ditaval
dita:id
phg1621910019905

INTERVAL DAY TO SECOND types are imported and exported in record and indicator modes as CHARACTER data using the client character set.

fractional_seconds_precision Data Type Format
0 CHARACTER(precision + 10) '-d(precision) hh:mm:ss'
n

where n is 1 - 6

CHARACTER(precision + n + 11) '-d(precision) hh:mm:ss.s(n)'

For example, for INTERVAL DAY (4) TO SECOND(3), the value may be '   125 12:27:31.125 '.

The DAY field has two leading blanks. The first is for a sign, which is not present for positive intervals. The second is to preserve the fixed size of the DAY field at four digits.