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

Teradata Vantageā„¢ - Data Types and Literals

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Programming Reference
Publication ID
B035-1143-171K
Language
English (United States)

Identifies a field as an INTERVAL value defining a period of time in seconds.

ANSI Compliance

INTERVAL SECOND is ANSI SQL:2011 compliant.

Syntax

INTERVAL SECOND [ ( precision [, fractional_seconds_precision ] ) ]
  [ attributes [...] ]

Syntax Elements

precision
The permitted range of digits for SECOND, 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.
See Core Data Type Attributes and Storage and Constraint Attributes for specific information.