表TB有1个字段bianma,
如何查询出bianma字段的重复行

解决方案 »

  1.   

    select bianma
    from tb
    group by bianma
    having count(1)>1
      

  2.   

    select * from tb
    where bianma in (select bianma from tb
    group by bianma having count(1)>=2)
      

  3.   

    select bianma from tb group by bianma having count(1) > 1select * from tb where bianma in (select bianma from tb group by bianma having count(1) > 1)
      

  4.   

    select bianma,count(1) from TB group by bianma count(1)>1