求一个mysql查询统计语句 name type(a/b/c)1012 a1012 b1013 a1013 a1014 c求一个sql语句查出每个name对应的type的a类有多少个,b类有多少,c类有多少 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 select `name`,`type`,count(*) as nums from table group by `name`,`type` 分开找也是可以的啊select count(*) as nums from table where type = 'a';select count(*) as nums from table where type = 'b';select count(*) as nums from table where type = 'c'; php读取xml 数据库操作 关于php的几个基础问题,恳请兄弟们帮下忙! id号自动生成问题 編程,就是用有限的積木堆積無限的可能 40分求解 zend framework的问题! 请问查询时怎么分组排序 can't connect to mysql server on 'server' (10065) 这个是什么错误呀。 请问如何把数据导成文本生成在某个路径下。 急、急、急,help! 求问如何把动态网页保存成静态 分页代码/帮我看看/纠结我有段时间了!
select count(*) as nums from table where type = 'a';
select count(*) as nums from table where type = 'b';
select count(*) as nums from table where type = 'c';