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