current_time()是MySQL日期/时间函数。它用于获取当前时间。
select current_time();
此函数将返回当前时间。如果在字符串上下文中使用,它将以" HH:MM:SS"格式返回当前时间。如果在数字上下文中使用,它将以HHMMSS格式返回当前时间。
链接:https://www.learnfk.comhttps://www.learnfk.com/mysql/mysql-current-time-function.html
来源:LearnFk无涯教程网
select current_time();
输出:
select current_time()+2;
输出:
祝学习愉快!(内容编辑有误?请选中要编辑内容 -> 右键 -> 修改 -> 提交!)