select 字段,count(*) from 表 group by 字段 having count(*)>'1'

解决方案 »

  1.   

    如果查全部记录.假设重复记录字段为ID
    select * from tb where id in (select id from tb group by id having count(*)>1)
      

  2.   

    一楼正解:select 字段,count(*) from 表 group by 字段 having count(*)>1
      

  3.   

    谢谢各位。找到数据了。  三楼  dawugui(潇洒老乌龟) 的答案完全些。 
    saiwong(匆匆过客) 和 jinanjiang() 也不错,都比我强,SQL语句我都快忘忘了。再次谢谢各位。~~~!
    下步就是我自己的活了
      

  4.   

    select * from 表
    where 字段 in
    (
    select 字段 from 表 group by 字段 having count(*)>'1'
    )
      

  5.   

    select * from 表
    where 字段 in
    (
    select 字段 from 表 group by 字段 having count(*)>1
    )