`

sql删除重复记录

SQL 
阅读更多

delete from people
where peopleId 

in (select  peopleId  from people  group  by  peopleId   having  count(peopleId) > 1)
and

rowid not in (select min(rowid) from  people  group by peopleId  having count(peopleId )>1)

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics