updated units supported by INTERVAL (#4832)

pull/4833/head^2
Scott Anderson 2023-03-27 16:19:36 -06:00 committed by GitHub
parent d278eb383a
commit 434708d05b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 35 additions and 14 deletions

View File

@ -118,6 +118,20 @@ INTERVAL '4 minutes'
INTERVAL '12 days 6 hours 30 minutes'
```
The following units of time are supported:
- nanoseconds
- microseconds
- milliseconds
- seconds
- minutes
- hours
- days
- weeks
- months
- years
- century
## Operators
Operators are reserved words or characters which perform certain operations, inluding comparisons and arithmetic.

View File

@ -155,12 +155,17 @@ YYYY-MM-DD 00:00:00
The INTERVAL data type can be used with the following precision:
- year
- month
- day
- hour
- minute
- nanosecond
- microsecond
- millisecond
- second
- minute
- hour
- day
- week
- month
- year
- century
##### Example interval literals
```sql

View File

@ -69,15 +69,17 @@ date_bin(interval, expression, origin-timestamp)
The following intervals are supported:
- milliseconds
- seconds
- minutes
- hours
- days
- weeks
- months
- years
- century
- nanoseconds
- microseconds
- milliseconds
- seconds
- minutes
- hours
- days
- weeks
- months
- years
- century
{{< expand-wrapper >}}
{{% expand "View `date_bin` query example" %}}