MySQL:选择差值大于x的TIMEDIFF值

时间:2014-03-29 11:52:59

标签: mysql sql

SELECT TIMEDIFF(start, end) AS difference

如果起始值和结束值为00:10:0001:05:00,则上述值将返回01:15:00

如何更改我的SQL语句,以便它只选择大于00:05:00的差异?

1 个答案:

答案 0 :(得分:3)

WHERE TIME_TO_SEC(TIMEDIFF(start, end)) > 300