查找表中字段重複信息的語句,根據單個字段(peopleID)判斷:html
select * from peoplewhere peopleId in (select peopleId from people group by peopleId having countide
(peopleId) > 1)spa
參考:https://www.cnblogs.com/wangzhuxing/p/7727713.html orm