跳到主要内容

current_timestamp

current_timestamp

description

Syntax

DATETIME CURRENT_TIMESTAMP()

获得当前的时间,以Datetime类型返回

example

mysql> select current_timestamp();
+---------------------+
| current_timestamp() |
+---------------------+
| 2019-05-27 15:59:33 |
+---------------------+

keywords

CURRENT_TIMESTAMP,CURRENT,TIMESTAMP