CURDATE,CURRENT_DATE
Descriptionβ
Retrieves the current date and returns it as a DATE type.
Aliasβ
- curdate
- current_date
Syntaxβ
CURDATE()
Return Valueβ
The current date.
Examplesβ
SELECT CURDATE();
+------------+
| CURDATE() |
+------------+
| 2019-12-20 |
+------------+
SELECT CURDATE() + 0;
+---------------+
| CURDATE() + 0 |
+---------------+
| 20191220 |
+---------------+