- 博客(0)
- 资源 (2)
空空如也
sql统计类查询语句
sql统计类代码
select type,count(*) as 总数量,
sum(case when level='一级' then 1 else 0 end) as 一级,
sum(case when level='二级' then 1 else 0 end) as 二级,
sum(case when level='三级' then 1 else 0 end) as 三级
from table group by type
2014-02-22
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人