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

 

上一篇:如何构建普适的企业级微服务架构(下)——阿里云 MVP孙玄


下一篇:阿里云CTO章文嵩:阿里云强大的数据和计算能力助力企业实现“弯道超车”