updated units supported by INTERVAL (#4832)
parent
d278eb383a
commit
434708d05b
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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" %}}
|
||||
|
|
|
|||
Loading…
Reference in New Issue