方法一
delete from tb_channel a where a
(select max(b
where a
——這一辦法在數據記錄超過
方法二
create table temp_emp as (select distinct * from employee) ;
truncate table employee;
insert into employee select * from temp_emp;
——這一辦法適用於較大的表的情況
方法三
select distinct * into new_table from old_table
order by 主 鍵
drop table old_table
exec sp_rename new_table
——這一辦法適用於較大的表的情況
From:http://tw.wingwit.com/Article/program/Oracle/201311/17889.html