Oracle删除重复的数据,Oracle数据去重复
Oracle 数据库中查询重复数据:select * from employee group by emp_name having count (*)>1; Oracle 查询可以删除的重复数据select t1.* from employee t1 where (t1.emp_name) in (SELECT t2.emp_name from employee t2 group by emp_name having count (*)>1) and t1.emp_id not in (select min(t3.emp_id) from employee t3 group by emp_name having count (*)>1); Oracle 删除重复数据delete from employee t1 where (t1.emp_name) in (SELECT t2.emp_name from employee t2 group by emp_name having count (*)>1) and t1.emp_id not in (select min(t3.emp_id) from employee t3 group by emp_name having count (*)>1); (编辑:长春站长网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
- oracle中的sql%rowcount,sql%found、sql%notfound、sql%row
- java.sql.SQLException: 内部错误: Unable to construct a
- Oracle RAC相关问题——adding cluster entries toinittab
- oracle 触发器 学习笔记
- ORA-12514: TNS: 监听程序当前无法识别连接描述符中请求的服
- 优化Oracle停机时间及数据库恢复
- 一个oracle指令的好网站
- oracle数据库中如何处理clob字段方法介绍
- Oracle存储过程、包、方法使用总结(推荐)
- Oracle报存储过程中调用DBLink同义词出现错误:PLS-00201:
