利用分析函数删除重复数据

delete from dupes where rowid in (select rowid  from (select a.*,row_number()  over(partition by name order by name) as rn from dupes a)
where rn>1);

posted @ 2014-03-19 19:50  czcb  阅读(263)  评论(0编辑  收藏  举报