select 名字,count(名字)条数 from tb group by 名字

解决方案 »

  1.   

    select 名字,记录数=count(1) from info group by 名字 having count(1)>10
      

  2.   


    select
      b.cnt as 记录数,
      a.*
    from 
      tb a,
      (select 名字,count(1) cnt from tb group by 名字) b
    where 
      a.名字=b.名字
      

  3.   


    select 某字段 , count(*) 数量 from tb group by 某字段 having count(*) >= 10
      

  4.   

    dawugui  Sorry已经结贴了,还是谢谢你