You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: LogicalTypes.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -521,11 +521,11 @@ as shown below.
521
521
</tr>
522
522
</table>
523
523
524
-
### INTERVAL types
524
+
### Interval types
525
525
526
526
#### INTERVAL
527
527
`INTERVAL` is *deprecated*. Please use `INTERVAL_YEAR_MONTH` and `INTERVAL_DAY_TIME`
528
-
as a more precise representation per [ANSI SQL Standard](https://www.ibm.com/docs/en/informix-servers/14.10.0?topic=types-ansi-sql-standards-datetime-interval-values).
528
+
as a more precise representation per [ANSI SQL Standard](https://docs.oracle.com/en/database/oracle/oracle-database/19/sqlrf/Data-Types.html#GUID-7690645A-0EE3-46CA-90DE-C96DF5A01F8F).
529
529
530
530
`INTERVAL` is used for an interval of time. It must annotate a
531
531
`fixed_len_byte_array` of length 12. This array stores three little-endian
@@ -544,19 +544,21 @@ statistics should be saved for this type and if such non-compliant statistics
544
544
are found during reading, they must be ignored.
545
545
546
546
#### INTERVAL_YEAR_MONTH
547
+
547
548
`INTERVAL_YEAR_MONTH` is used to represent a year-month time interval, such as
548
549
`4 years and 6 months`. It must annotate an `int32` that stores the total number
549
550
of months as a signed integer, which represents the interval and can be negative.
550
551
The time duration is independent of any timezone.
551
552
552
553
#### INTERVAL_DAY_TIME
554
+
553
555
`INTERVAL_DAY_TIME` is used to represent a day-time time interval, such as
554
556
`5 days, 10 hours and 30 minutes`. It must annotate a 16-byte `FIXED_LEN_BYTE_ARRAY`
555
557
that stores the total number of nanoseconds representing the interval. The value is
556
558
a signed integer and can be negative to indicate backward duration.
557
559
The time interval is independent of any timezone.
558
560
559
-
Based on the [ANSI SQL standard](https://web.cecs.pdx.edu/~len/sql1999.pdf) definition of the INTERVAL data type and fields values,
561
+
Based on the [ANSI SQL standard](https://docs.oracle.com/en/database/oracle/oracle-database/19/sqlrf/Data-Types.html#GUID-7690645A-0EE3-46CA-90DE-C96DF5A01F8F) definition of the INTERVAL data type and fields values,
560
562
an interval of 1 day is equivalent to 24 hours, regardless of the specific number of
561
563
seconds in a day. This means that when you define an interval of `1 day`,
562
564
it represents exactly 24 hours, or 86,400,000,000 nanoseconds.
0 commit comments