mysql數據庫遷移到oracle數據庫後 如何刪除相同的數據

mysql數據庫遷移到oracle數據庫後 如何刪除相同的數據mysql

首先搞清楚有多少數據是重複的sql

select pid from product group by pid having count(pid) > 1數據庫

刪除重複記錄(id都是重複的)oracle

delete from product
where
pid not in (select min(pid) from product group by pid having count(pid)>1)select

相關文章
相關標籤/搜索