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
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
转载于:https://www.cnblogs.com/fh-fendou/p/10980030.html