mysql - time

mysql> select current_timestamp();

+---------------------+

| current_timestamp() |

+---------------------+

| 2016-06-02 14:14:37 |

+---------------------+

1 row in set (0.00 sec)

 

mysql> select unix_timestamp(current_timestamp());

+-------------------------------------+

| unix_timestamp(current_timestamp()) |

+-------------------------------------+

|                          1464848262 |

+-------------------------------------+

 

 

1 row in set (0.00 sec)

 

mysql> select current_time();

+----------------+

| current_time() |

+----------------+

| 14:14:47       |

+----------------+

 

1 row in set (0.00 sec)

 

posted @ 2016-08-30 21:11  拾阶而上的PM  阅读(94)  评论(0)    收藏  举报
本博内容由王子豪 www.07byte.com 提供