ㄓㄤㄑㄧㄤ

mysql查询当前系统时间

第一种方法:select current_date;

MySQL> select current_date as Systemtime;
+------------+
| Systemtime |
+------------+
| 2009-07-29 |
+------------+

 

第二种方法:select now()

mysql> select now() as Systemtime;
+---------------------+
| Systemtime          |
+---------------------+
| 2009-07-29 19:06:07 |
+---------------------+

 

第三种方法:select sysdate()

mysql> select sysdate() as Systemtime;
+---------------------+
| Systemtime          |
+---------------------+
| 2009-07-29 19:06:45 |
+---------------------+

 

转自:http://blog.csdn.net/aini3456/article/details/6471081

posted @ 2017-06-16 15:36  ㄓㄤㄑㄧㄤ  阅读(3566)  评论(0编辑  收藏  举报
哈哈,页脚部分。