select icknbh from ic_yhxx00 group by icknbh having count(*)>1

解决方案 »

  1.   

    select t1.*
    from   ic_yhxx00 t1
    where  t1.id >
    (
           select min(t2.id)
           from   ic_yhxx00 t2
           where  t1.icknbh = t2.icknbh
    )
      

  2.   

    取出所有重复的记录行
    SQL> select * from ic_yhxx00 a
     where (select count(*) from ic_yhxx00 b where a.icknbh=b.icknbh)<>1;
      

  3.   

    楼上的方法都可以,个人觉得shanyuliang(良子) 的最好了
      

  4.   

    呵呵,ern(毕业生) ,多谢捧场,我需要鼓励啊!
      

  5.   

    select icknbh from ic_yhxx00