Internal Representation of INTERVAL YEAR
External Representation of INTERVAL YEAR
INTERVAL YEAR types are imported and exported in record and indicator modes as CHARACTER data using the client character set.
|CHARACTER(precision + 1)||'-y(precision)'|
The value includes a leading blank or minus sign followed by the indicated number of digits. An example value for INTERVAL YEAR(3) is '-125'.
Range of Values
The range of values for INTERVAL YEAR is as follows.
|Type and Precision||Minimum Value||Maximum Value|
Implicit and Explicit INTERVAL YEAR Conversion
Vantage performs implicit conversion from one Interval data type to another Interval type in some cases. You can also use CAST to explicitly convert one Interval type to another.
Conversions are possible only within the same INTERVAL family. For example, you may convert a YEAR interval to months, but not to days or hours.
For more information, see Teradata Vantage™ - SQL Functions, Expressions, and Predicates, B035-1145.