delete from timer_overtime where v_no not in (select min(v_no) from timer_overtime group by v_no),这个怎么不能呢删除呢
这个查询把所有的v_no都包含进来了.
表里面相同的数据,只有overtime_id是不相同的,并且是不重复的.
delete from timer_overtime where overtime_id not in (select min(overtime_id ) from timer_overtime group by v_no)