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

 

posted @ 2019-07-26 23:54  anobscureretreat  阅读(268)  评论(0编辑  收藏  举报