oracle数据去重语句介绍
程序员文章站
2024-01-22 18:04:22
简单的一条语句:delete from 表名 where (id) in ( select id from 表名 group by id having count(id) > 1) and r...
简单的一条语句:delete from 表名 where (id) in ( select id from 表名 group by id having count(id) > 1) and rowid not in (select min(rowid) from 表名 group by id having count(*) > 1);
上一篇: vim-plug