oracle 查某一列有重复值的记录

-- 查找重复记录
select names,num
from test
where rowid != (select max(rowid)
                 from test b
                where b.names = test.names and
                      b.num = test.num)

或者使用

select names,num
from test
where rownum!= (select max(rownum)
                 from test b
                where b.names = test.names and
                      b.num = test.num)

 

 

oracle 查某一列有重复值的记录,布布扣,bubuko.com

oracle 查某一列有重复值的记录

上一篇:dx:ASPxGridView 批量删除


下一篇:ArcSDE10.1配置Oracle 监听器来使用SQL操作ST_Geometry(个人改动版)