查詢並刪除重複記錄的SQL語句

查詢並刪除重複記錄的SQL語句 查詢及刪除重複記錄的SQL語句 一、查找表中多餘的重複記錄,重複記錄是根據單個字段(peopleId)來判斷 select * from people where peopleId in (select peopleId from people group by peopleId having count(peopleId) > 1) 二、刪除表中多餘的重複記錄,重
相關文章
相關標籤/搜索