如何用一条SQL语句得到下面的结果? (50分)

稻草

Unregistered / Unconfirmed
GUEST, unregistred user!
表如下:
字段1 字段2
a xxx
c xxxx
a xx
b xxxx
a xxx
c xxxxx
............

要求结果是
a 多少条记录
b 多少条记录
c 多少条记录
 
select 字段1,count(*) from 表名
group by 字段1
 
顶部