Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 373 Bytes

File metadata and controls

24 lines (17 loc) · 373 Bytes

now

功能

获取当前的时间,以 DATETIME 类型返回。

该函数受时区影响,具体参见 设置时区

语法

DATETIME NOW()

示例

select now();
+---------------------+
| now()               |
+---------------------+
| 2022-10-09 21:19:35 |
+---------------------+