其实这题想复杂也会很复杂 想简单就会很简单
最简单的方法就是 只要 抓到最小的 管你充不重复 这些不重要 抓到最小的 不删 OK 解决!!
delete from titles_test
where id not in
(
select min(id)
from titles_test
group by emp_no
);
其实这题想复杂也会很复杂 想简单就会很简单
最简单的方法就是 只要 抓到最小的 管你充不重复 这些不重要 抓到最小的 不删 OK 解决!!
delete from titles_test
where id not in
(
select min(id)
from titles_test
group by emp_no
);