您的位置:首页 > 数据库 > MySQL

mysql查询当前时间

2012-03-31 12:42 603 查看
mysql> select current_timestamp();

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

| current_timestamp() |

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

| 2010-01-18 21:24:37 |

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

1 row in set (0.00 sec)

mysql> select current_date();

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

| current_date() |

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

| 2010-01-18 |

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

1 row in set (0.00 sec)

mysql> select current_time();

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

| current_time() |

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

| 21:24:46 |

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

1 row in set (0.00 sec)
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: