删除表中多余的重复记录,重复记录是根据单个字段(Id)来判断,只留有rowid最小的记录
程序员文章站
2022-12-24 10:10:59
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 gr ......
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)