1. en: add convert_tz.md 2. en: fix curdate.md, the fix is to modify the title 3. en: add curtime.md 4. en: fix str_to_date.md, the fix is to modify the title 5. zh-CN: fix convert_tz.md, the fix is to modify the description 6. zh-CN: fix curdate.md, the fix is to modify the title
1.2 KiB
1.2 KiB
title, language
| title | language |
|---|---|
| curdate,current_date | zh-CN |
curdate,current_date
description
Syntax
DATE CURDATE()
获取当前的日期,以DATE类型返回
Examples
mysql> SELECT CURDATE();
+------------+
| CURDATE() |
+------------+
| 2019-12-20 |
+------------+
mysql> SELECT CURDATE() + 0;
+---------------+
| CURDATE() + 0 |
+---------------+
| 20191220 |
+---------------+
keyword
CURDATE,CURRENT_DATE