Oracle用rowid删除重复记录
2008-10-23 09:18
381 查看
Oracle用rowid删除重复记录
查询:
select *
from org_dept a
where a.rowid !=
(select max(rowid) from org_dept b where a.dept_code = b.dept_code)
删除:
delete
from org_dept a
where a.rowid !=
(select max(rowid) from org_dept b where a.dept_code = b.dept_code)
查询:
select *
from org_dept a
where a.rowid !=
(select max(rowid) from org_dept b where a.dept_code = b.dept_code)
删除:
delete
from org_dept a
where a.rowid !=
(select max(rowid) from org_dept b where a.dept_code = b.dept_code)
相关文章推荐
- oracle删除重复记录,只保留rowid最小的记录
- Oracle利用rowid删除表中重复记录
- 在Oracle中如何利用Rowid查找和删除表中的重复记录
- 在Oracle中如何利用Rowid查找和删除表中的重复记录
- Oracle用rowid删除同一张表的重复记录
- 在Oracle中如何利用Rowid查找和删除表中的重复记录
- 在Oracle中如何利用Rowid查找和删除表中的重复记录(转)
- 删除oracle 表中重复数据sql语句、保留rowid最小的一条记录
- Oracle用rowid删除同一张表的重复记录
- Oracle使用rowid删除重复记录
- 在Oracle中利用Rowid查找和删除表中的重复记录
- Oracle利用rowid删除表中重复记录
- 初探oracle删除重复记录,只保留rowid最小的记录
- Oracle中用Rowid查找和删除重复记录
- 在Oracle中如何利用Rowid查找和删除表中的重复记录
- oracle笔记整理5——delete与truncate,rowid与rownum,删除重复记录
- 在Oracle中如何利用Rowid查找和删除表中的重复记录
- Oracle中用Rowid查找和删除重复记录
- 删除表中多余的重复记录(多个字段),只留有rowid最小的记录
- Oracle删除重复记录 企业为什么经常使用Oracle?