- Time interval as an unsigned integer value.
- Type of an interval.
NANOSECONDMICROSECONDMILLISECONDSECONDMINUTEHOURDAYWEEKMONTHQUARTERYEAR
DAY interval corresponds to the IntervalDay data type:
Usage Remarks
You can useInterval-type values in arithmetical operations with Date and DateTime-type values. For example, you can add 4 days to the current time:
Mixed-type Intervals
Intervals of mixed type, e.g. multiple hours and multiple minutes, can be created usingINTERVAL 'value' <from_kind> TO <to_kind> syntax.
The result is a tuple of two or more intervals.
Supported combinations:
Non-leading fields are validated per the SQL standard:
MONTH 0-11, HOUR 0-23, MINUTE 0-59, SECOND 0-59.
+ or - sign applies to all components:
See Also
- INTERVAL operator
- toInterval type conversion functions