select sum(unix_timestamp(B)-unix_timestamp(A)) as 秒数
from tb
--这样是显示成 xxx:xx:xx 的形式
select sec_to_time(sum(unix_timestamp(B)-unix_timestamp(A))) as ti
from tb
--
select count(*) from handup where unix_timestamp(hinserttime) >(select unix_timestamp(max(hinserttime)) from handup) - 3600欢迎分享,转载请注明来源:内存溢出
评论列表(0条)