Signed-off-by: Lloyd-Pottiger <yan1579196623@gmail.com>
This commit is contained in:
Lloyd-Pottiger 2023-07-18 10:28:51 +08:00
parent 3636c2a847
commit 56a5446af3

View File

@ -1130,10 +1130,12 @@ Result:
└──────────────────────────────────────────────────────────────┘
```
## now/current_timestamp
## now
Returns the current date and time at the moment of query analysis. The function is a constant expression.
Alias: `current_timestamp`.
**Syntax**
``` sql
@ -1259,11 +1261,13 @@ Result:
└─────────────────────┴─────────────────────┴──────────┘
```
## today/curdate/current_date
## today
Accepts zero arguments and returns the current date at one of the moments of query analysis.
The same as toDate(now()).
Aliases: `curdate`, `current_date`.
## yesterday
Accepts zero arguments and returns yesterdays date at one of the moments of query analysis.