select col1,col2,col3,count(*)
  from mytable
 group by col1, col2, col3
having count(*)=1;

解决方案 »

  1.   

    select  DISTINCT col1,col2,col3  from mytable
      

  2.   

    同意弱水老大,用group by分组,然后通过having字句求出所有不唯一的值。
    select col1,col2,col3  from table
     group by col1, col2, col3
    having count(1)=1;
      

  3.   

    xiaoduoliu (): 你说的'不重复的记录'是针对col1,col2,col3而言?
      

  4.   

    换一个思路:
    select * from t1
    where rowid in 
    (select min(rowid) from t1 group by c1,c2,c3)
      

  5.   

    许多东西都可以通过看GUIDE HELP解决
      

  6.   

    不重复可以这样
    http://www.oradb.net/sql/find0.htm若根据另一条件
    select * from table_name where (col,col2,col3) in (select col1,col2,col3 from table_name 条件);