timediff()是MySQL日期/时间函数。它用于将表达式转换为日期时间。
select timestamp(expression, [interval])
expression:要转换的时间/日期时间值
interval:它是可选的,它被添加到时间值中
此函数返回日期时间值。
链接:https://www.learnfk.comhttps://www.learnfk.com/mysql/mysql-timestamp-function.html
来源:LearnFk无涯教程网
select timestamp('2018-10-03');
输出:
select timestamp('2018-10-03 01:13:42');
输出:
祝学习愉快!(内容编辑有误?请选中要编辑内容 -> 右键 -> 修改 -> 提交!)