time()是MySQL日期/时间函数。它用于从给定的时间获取时间。
select time(expression);
expression:要提取的时间/日期时间。
此函数从给定的时间/日期时间返回时间。
链接:https://www.learnfk.comhttps://www.learnfk.com/mysql/mysql-time-function.html
来源:LearnFk无涯教程网
select time('2018-10-01 08:01:23.000005');
输出:
select time('08:01:23');
输出:
祝学习愉快!(内容编辑有误?请选中要编辑内容 -> 右键 -> 修改 -> 提交!)