MySQL 获得 当前日期时间 函数

mysql> select now();

输出

2019-07-26 15:43:34

例子

mysql> select now(), sleep(3), now();

+---------------------+----------+---------------------+
| now() | sleep(3) | now() |
+---------------------+----------+---------------------+
| 2008-08-08 22:28:21 | 0 | 2008-08-08 22:28:21 |
+---------------------+----------+---------------------+

参考:

https://www.cnblogs.com/php12-cn/p/8882221.html

原文地址:https://www.cnblogs.com/sea-stream/p/11253515.html