刪除數據庫表中的重複數據

代碼 delete from tbl where (id) in( select id from ( select id from tbl where (name,age) in ( select name,age from tbl group by name,age having count(*)>1 ) and id not in ( select min(id) from tbl group
相關文章
相關標籤/搜索