摘要: SQLSERVER 删除重复记录 1、查找表中多余的重复记录,重复记录是根据单个字段(peopleId)来判断select * from peoplewhere peopleId in (select peopleId from people group by peopleId having count(peopleId) > 1) 2、删除表中多余的重复记录,重复记录是根据单个字段(peopleId)来判断,只留有rowid最小的记录delete from peoplewhere peopleId in (select peopleId from people gr... 阅读全文
posted @ 2012-09-22 08:45 tiasys 阅读(12395) 评论(1) 推荐(1) 编辑