获取当前时间的MySql时间函数
下面为您介绍的MySql时间函数用于获取当前时间,该MySql时间函数***实用价值,希望能对您学习MySql时间函数方面有所帮助。
- 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)
【编辑推荐】
Mysql聚合函数简介
MySQL字符串大小写转换函数
MySQL concat函数的使用
MySql远程连接的实现方法
MySQL主键的设计原则
版权声明:
作者:后浪云
链接:https://www.idc.net/help/319912/
文章版权归作者所有,未经允许请勿转载。
THE END