字段:typeid
select sum(case when typeid=1 then count(typeid) else 0 end ) as ,
sum(case when typeid=3 then count(typeid) else 0 end )as ,
sum(case when typeid=4 then count(typeid) else 0 end) as
from meeting_main where organcode='条件的值' group by typeid