CURDATE,CURRENT_DATE
curdate,current_date
description
Syntax
DATE CURDATE()
获取当前的日期,以DATE类型返回
示例
mysql> SELECT CURDATE();
+------------+
| CURDATE() |
+------------+
| 2019-12-20 |
+------------+
mysql> SELECT CURDATE() + 0;
+---------------+
| CURDATE() + 0 |
+---------------+
| 20191220 |
+---------------+
keywords
CURDATE,CURRENT_DATE