Select oragname,Count(oragname) "people" From CulbTable Group By oragname
3
select oragname , count(*) 人数 from tb group by oragname
create table tb(oragname varchar(10) , rower varchar(10)) insert into tb values('club1' , 'allen') insert into tb values('club1' , 'billy') insert into tb values('club2' , 'cindy') insert into tb values('club3' , 'dicky') select oragname , count(*) 人数 from tb group by oragname drop table tb /* oragname 人数 ---------- ----------- club1 2 club2 1 club3 1 (所影响的行数为 3 行) */
SELECT oragname,COUNT(oragname) FROM ct GROUP BY oragname