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

 

上一篇:Scheme的字符串操作


下一篇:使用jquery-easyui写的CRUD插件(3)