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)
+---------------------+
| 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)
相关文章推荐
- mysql查询当前时间,一天内,一周,一个月内的sql语句
- mysql中取系统当前时间,当前日期方便查询判定的代码
- mysql 查询当前时间是星期几
- mysql 查询当前月 第一天/最后一天 时间
- MYsql 查询 查询当前月份的数据(时间 查询)
- mysql中取系统当前时间,当前日期方便查询判定的代码
- MYsql 查询 查询当前月份的数据(时间 查询)
- mysql查询当前时间的前后几天时间
- Mysql语句:right join 和where查询条件(前一天18:00到当前时间)
- MySQL查询当前系统时间在 开始时间和结束时间之间
- mysql 查询当前时间
- mysql查询当前系统时间
- mysql查询当前时间,一天内,一周,一个月内的sql语句
- mysql查询当前时间,一天内,一周,一个月内的sql语句
- mysql时间格式化,按时间段查询MYSQL语句
- mysql查询上月用电量时时间戳的选择
- mysql添加当前时间
- Mysql update语句赋值嵌套select,更新和查询同一张表,必须取别名;用例:更新指定游戏服务器最后启动记录的结束时间
- mysql 客户端查询超时时间的控制
- MySQL 获得当前日期时间(以及时间的转换)