SQL语句

 参考 

http://t.zoukankan.com/lidabo-p-3024708.html

1、查找表people中字段(peopleId)重复的记录 

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

 

posted on 2022-08-24 14:37  dreamstar  阅读(5)  评论(0编辑  收藏  举报