日期:2014-05-17 浏览次数:20797 次
select count(1),sum(case when type='sp' then 1 else 0 end) sp, sum(case when type='xp' then 1 else 0 end) xp from tb_t1 where id=1