Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 389 Bytes

File metadata and controls

33 lines (24 loc) · 389 Bytes

curdate

description

Syntax

DATE CURDATE()

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

Examples

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

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

keyword

CURDATE