curdate,current_date
curdate,current_dateβ
Descriptionβ
Syntaxβ
DATE CURDATE()
Get the current date and return it in Date type
exampleβ
mysql> SELECT CURDATE();
+------------+
| CURDATE() |
+------------+
| 2019-12-20 |
+------------+
mysql> SELECT CURDATE() + 0;
+---------------+
| CURDATE() + 0 |
+---------------+
| 20191220 |
+---------------+
keywordsβ
CURDATE,CURRENT_DATE