标签: mysql sql
SELECT TIMEDIFF(start, end) AS difference
如果起始值和结束值为00:10:00,01:05:00,则上述值将返回01:15:00。
00:10:00
01:05:00
01:15:00
如何更改我的SQL语句,以便它只选择大于00:05:00的差异?
00:05:00
答案 0 :(得分:3)
WHERE TIME_TO_SEC(TIMEDIFF(start, end)) > 300