INTERVAL YEAR Data Type | Data Types and Literals | Teradata Vantage - INTERVAL YEAR Data Type - Teradata Vantage - Analytics Database

SQL Data Types and Literals

Deployment
VantageCloud
VantageCore
Edition
VMware
Enterprise
IntelliFlex
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
ft:locale
en-US
ft:lastEdition
2025-11-06
dita:mapPath
uds1628112204571.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
exs1472253032394
lifecycle
latest
Product Category
Teradata Vantageā„¢

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

ANSI Compliance

INTERVAL YEAR is ANSI SQL:2011 compliant.

Syntax

INTERVAL YEAR [ ( precision ) ] [ attributes [...] ]

Syntax Elements

precision
The permitted range of digits for YEAR, ranging from 1 to 4.
The default is 2.
For example, if you specify a precision of 4, the range for YEAR is -'9999' through '9999'.
attributes
Appropriate data type, column storage, or column constraint attributes.
For specific information, see Core Data Type Attributes and Storage and Constraint Attributes.