select col3 from t group by col3 having count(*) > 1

解决方案 »

  1.   

    select * from your_table
    where col3 in 
         (
          select col3 
          from  (select col3,count(*) aa from your_table)
          where  aa >1
         )
                  
      

  2.   

    select col1,col2,count(col3) from table1 group by col1,col2 having count(col3)>1
      

  3.   

    有點錯誤,更正一下
    select * from your_table
    where col3 in 
         (
          select col3 
          from  (select col3,count(*) aa from your_table group by col3)
          where  aa >1
         )