1.Oracle DBA手册不错
2.create table temp 
(select distinct * from table 你的表);
drop table 你的表;
然后再把那个临时表倒过来就可以了

解决方案 »

  1.   

    f1        f2    f3
    李志明     男    通讯
    李志明     男    通讯delete from t1 where rowid != (select max(rowid) from t1 t2 
    where t1.f1 = t2.f1 and t1.f2 = t2.f2 and t1.f3 = t2.f3)  
      

  2.   

    DELETE FROM our_table 
    WHERE rowid not in 
    (SELECT MIN(rowid) 
    FROM our_table 
    GROUP BY column1, column2, column3...
      

  3.   

    除了用DELETE有没有别的办法,如果有N多的记录,我总不能一条一条去查ROWID巴,还请大家多替我想想办法,谢谢了
      

  4.   

    我总不能一条一条去查ROWID巴???要你去查??不用吧,你试试运行上面两个猩猩大哥的SQL
      

  5.   

    2.create table temp 
    (select distinct * from table 你的表);这种方法好象不行!
      

  6.   

    毕业生的办法我试了一下,能用,就是要倒一下表
    lianhg的办法,我有一点看不懂,t1,t2似乎是表名,他的想法似乎是从两个表中查出一组值相等的记录,然后根据ROWID删除,第二张表应该是复制表1的对巴,但是只能针对一组重复纪录,而且程序员还必须区分哪些纪录内容是重复的,似乎效率不高
    BZSZP的办法,也必须查出重复记录内容,似乎效率不高
    这是小弟一点粗浅的看法,如有错误还请大家指正,谢谢
      

  7.   

    SQL> create table t1 (f1 varchar2(10),f2 varchar2(10),f3 varchar2(10));
    SQL> insert into t1 values('1','2','3');
    SQL>/
    SQL>/
    SQL>/
    SQL>insert into t1 values('2','2','3');
    SQL>/
    SQL>/
    SQL>delete from t1 where rowid != (select max(rowid) from t1 t2 
    where t1.f1 = t2.f1 and t1.f2 = t2.f2 and t1.f3 = t2.f3);
    SQL> select * from t1;F1                   F2                   F3
    -------------------- -------------------- --------------------
    1                    2                    3
    2                    2                    3
      

  8.   

    毕业生的方法可以直接把旧表删除,用rename把新表改名就行了。其他的方法用rowid来检索效率也应该不会太低!!!
      

  9.   

    create table temp as
    (select distinct * from table 你的表);
      

  10.   

    还有BZSZP的方法里面column是指什么?大侠们能帮忙把算法的中心思想说一下吗?省得我看不懂又乱说
      

  11.   

    oracle 是标准SQL,多看看有关SQL方面的书籍。
      

  12.   

    由哪些比较经典的oracle书,最好是电子版的,推荐几本给小弟我吧,谢谢了
      

  13.   

    create table temp as
    (select distinct * from table 你的表);
    哦。原来是create table temp as
    (select distinct * from tablename);
      

  14.   

    前辈们有什么好的ORACLE电子书推荐一本吧,谢谢
      

  15.   

    http://61.144.28.248/d6i/bbs_armok01/bbs_content.jsp?bbsSerialNo=7722&bbsPageNo=1
    這兒有N多好書,慢慢下栽吧!!!!