标签:
select * from hengtu_demandpush a
where (a.did,a.mid) in (select did,mid from hengtu_demandpush group by did,mid having count(*) > 1)
或
select * from hengtu_demandpush group by did,mid having count(*)>1
1、查找表中多余的重复记录,重复记录是根据单个字段(peopleId)来判断
2、删除表中多余的重复记录,重复记录是根据单个字段(peopleId)来判断,只留有rowid最小的记录
3、查找表中多余的重复记录(多个字段)
4、删除表中多余的重复记录(多个字段),只留有rowid最小的记录
5、查找表中多余的重复记录(多个字段),不包含rowid最小的记录
标签:
原文地址:http://www.cnblogs.com/luojianqun/p/4635184.html