--oracle查找重复记录
select * from tableA a where a.rowid>=(select min(rowid) from tableA b where a.column=b.column)
--oracle删除重复记录
delete from tableA a where a.rowid>=(select min(rowid) from tableB b where a.column=b.column)
--oracle删除重复记录(保留一条)
delete from tableA a where a.rowid>(select min(rowid) from tableB b where a.column=b.column)
时间: 2024-10-11 00:18:29