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 ... );

posted @ 2013-10-20 18:12  Richard Zhong  阅读(142)  评论(0编辑  收藏  举报