现在的位置: 首页 > 综合 > 正文

ORACLE 删除重复数据

2012年06月30日 ⁄ 综合 ⁄ 共 167字 ⁄ 字号 评论关闭

delete FROM mc_test t
where t.rowid <(select max(rowid) from mc_test t1
                where t1.row_id=t.row_id)
and t.row_id in(
select t.row_id from mc_test t
group by t.row_id
having count(*) >= 2);

抱歉!评论已关闭.