mysql 算出开始时间和结束时间之差

select
      id,job_id,start_time,end_time,update_time,sum(TIMESTAMPDIFF(SECOND,start_time,end_time)) time

from walmart_rank_tool_job_detail WHERE status in (3,4) and update_time like "2019-06-04%" GROUP BY update_time

 

posted @ 2019-06-05 15:46  那时的吻狠陶醉  阅读(1315)  评论(0编辑  收藏  举报