Oracle中刪除重複的經典方案

DELETE FROM Personnel

WHERE ROWID < (SELECT MAX(P1.ROWID)

            FROM   Personnel AS P1

            WHERE P1.dup_id = Personnel.dup_id

            AND P1.name = Personel1.name

            AND ... );
相關文章
相關標籤/搜索