2013年11月5日

SQL删除重复数据

摘要: --删除表中重复的数据,只留有id最小的记录delete from SiteShopCuswhere mobile in (select mobile from SiteShopCus group by mobile having count(mobile) > 1)and id not in (select min(id) from SiteShopCus group by mobile having count(mobile )>1)--删除表中多余的重复记录(多个字段),只留有rowid最小的记录delete from vitae awhere (a.peopleId,a.s 阅读全文

posted @ 2013-11-05 10:49 骑蟋蟀的蝈蝈 阅读(203) 评论(0) 推荐(0)

导航