先通过tb_user_video_log,tb_video_info计算出每个viedo_id的播放情况 select tu.video_id ,tv.tag ,if((TIMESTAMPDIFF(second,tu.start_time,tu.end_time) / tv.duration) > 1,1,TIMESTAMPDIFF(second,tu.start_time,tu.end_time) / tv.duration) Isno from tb_user_video_log tu left join tb_video_info tv on tu.vid...