Identifies a field as an INTERVAL value defining a period of time in hours.
INTERVAL HOUR is ANSI SQL:2011 compliant.
Internal Representation of INTERVAL HOUR
External Representation of INTERVAL HOUR
INTERVAL HOUR types are imported and exported in record and indicator modes as CHARACTER data using the client character set.
|CHARACTER(precision + 1)||'-h(precision)'|
For example, for INTERVAL HOUR(1), the value might be something like '-5'.
Range of Values
The range of values for INTERVAL HOUR is as follows.
|Type and Precision||Minimum Value||Maximum Value|
Implicit and Explicit INTERVAL HOUR Conversion
Teradata Database 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 “Data Type Conversions” in SQL Functions, Operators, Expressions, and Predicates.