curdate

description

Syntax

DATE CURDATE()

获取当前的日期,以DATE类型返回

Examples

MySQL > SELECT CURDATE();
+------------+
| CURDATE()  |
+------------+
| 2019-12-20 |
+------------+

MySQL > SELECT CURDATE() + 0;
+---------------+
| CURDATE() + 0 |
+---------------+
|      20191220 |
+---------------+

keyword

CURDATE