oracle数据库字段去重
程序员文章站
2022-06-02 13:03:15
...
delete from 表名 where rowid in
(select rid from
(select rowid rid,row_number() over(partition by 需要去重的字段 order by rowid) rn from 表名)
where rn <> 1 );
上一篇: 消除重复数
下一篇: 2021-05-03