delete from Resource where Title in (select Title from Resource group by Title having count(Title) > 1) and Id not in (select min(Id) from Resource group by Title having count(Title)>1)
转载于:https://www.cnblogs.com/daran/p/10537205.html
delete from Resource where Title in (select Title from Resource group by Title having count(Title) > 1) and Id not in (select min(Id) from Resource group by Title having count(Title)>1)
转载于:https://www.cnblogs.com/daran/p/10537205.html