首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > oracle >

如果表有重复数据,怎么删除重复数据

2012-05-27 
如果表有重复数据,如何删除重复数据求方法效率要考虑之前用拷贝的方法做SQL codecreate table tmp as (sel

如果表有重复数据,如何删除重复数据
求方法 效率要考虑

之前用拷贝的方法做  

SQL code
create table tmp as (select distinct * from salgrade);drop table salgrade;create table salgrade as (select * from tmp);drop table tmp;select * from salgrade;

被点评效率太低


有改进什么办法

[解决办法]
探讨
求方法 效率要考虑

之前用拷贝的方法做

SQL code
create table tmp as (select distinct * from salgrade);

drop table salgrade;

create table salgrade as (select * from tmp);

drop table tmp;

select * fro……

热点排行