timestart
= 16:46:33timeend
= 16:48:22
预期结果= 00:01:49
我的查询:
Select timestart , timeend, (timeend - timestart) as rangetime from time;
最佳答案
尝试SubTime
Select timestart , timeend, SUBTIME(timestart ,timeend) As rangetime from time;
FIDDLE DEMO
关于mysql - 如何使用格式(HH:mm:ss)在MySQL查询中减去时间,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/24260064/