INTERVAL HOUR TO SECOND Data Type | Data Types and Literals | Teradata Vantage - INTERVAL HOUR TO SECOND Data Type - Advanced SQL Engine - Teradata Database

SQL Data Types and Literals

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Published
July 2021
Language
English (United States)
Last Update
2021-07-27
dita:mapPath
tpf1598412463935.ditamap
dita:ditavalPath
tpf1598412463935.ditaval
dita:id
B035-1143
lifecycle
previous
Product Category
Teradata Vantageā„¢

Identifies a field as an INTERVAL value defining a period of time in hours, minutes, and seconds.

ANSI Compliance

INTERVAL HOUR TO SECOND is ANSI SQL:2011 compliant.

Syntax

INTERVAL HOUR [ ( precision ) ] TO SECOND
  [ ( fractional_seconds_precision ) ] [ attributes [...] ]

Syntax Elements

precision
The permitted range of digits for HOUR, ranging from one to four.
The default is two.
fractional_seconds_precision
The fractional precision for the values of SECOND, ranging from zero to six.
The default is six.
attributes
Appropriate data type, column storage, or column constraint attributes.
For specific information, see Core Data Type Attributes and Storage and Constraint Attributes.