Update docs

This commit is contained in:
Robert Schulze 2023-10-20 15:46:17 +00:00
parent 3bbaec3fd7
commit 3551d7f2d6
No known key found for this signature in database
GPG Key ID: 26703B55FB13728A
2 changed files with 17 additions and 4 deletions

View File

@ -1910,6 +1910,7 @@ Result:
```
**See Also**
- [subDate](#subDate)
## timestamp\_add
@ -2053,6 +2054,7 @@ Result:
Alias: `ADDDATE`
**See Also**
- [date_add](#date_add)
## subDate
@ -2095,6 +2097,7 @@ Result:
Alias: `SUBDATE`
**See Also**
- [date_sub](#date_sub)
## now {#now}
@ -2388,9 +2391,11 @@ Like function `YYYYMMDDhhmmssToDate()` but produces a [DateTime64](../../sql-ref
Accepts an additional, optional `precision` parameter after the `timezone` parameter.
## addYears, addMonths, addWeeks, addDays, addHours, addMinutes, addSeconds, addQuarters
## addYears, addQuarters, addMonths, addWeeks, addDays, addHours, addMinutes, addSeconds, addMilliseconds, addMicroseconds, addNanoseconds
Function adds a Date/DateTime interval to a Date/DateTime and then return the Date/DateTime. For example:
These functions add units of the interval specified by the function name to a date or a date with time. A date or date with time is returned.
Example:
``` sql
WITH
@ -2407,9 +2412,11 @@ SELECT
└─────────────────────┴──────────────────────────┘
```
## subtractYears, subtractMonths, subtractWeeks, subtractDays, subtractHours, subtractMinutes, subtractSeconds, subtractQuarters
## subtractYears, subtractQuarters, subtractMonths, subtractWeeks, subtractDays, subtractHours, subtractMinutes, subtractSeconds, subtractMilliseconds, subtractMicroseconds, subtractNanoseconds
Function subtract a Date/DateTime interval to a Date/DateTime and then return the Date/DateTime. For example:
These functions subtract units of the interval specified by the function name from a date or a date with time. A date or date with time is returned.
Example:
``` sql
WITH

View File

@ -992,8 +992,11 @@ activerecord
addDate
addDays
addHours
addMicroseconds
addMilliseconds
addMinutes
addMonths
addNanoseconds
addQuarters
addSeconds
addWeeks
@ -2313,8 +2316,11 @@ substrings
subtitiles
subtractDays
subtractHours
subtractMicroseconds
subtractMilliseconds
subtractMinutes
subtractMonths
subtractNanoseconds
subtractQuarters
subtractSeconds
subtractWeeks