select kinds,count(1) as cl from t_b_current_alarm group by kinds union all select 'sj' kinds, count(*) as cl from T_B_TROUBLEWORK t where t.status like '%处理中%'
常量放在前面是确定好他的值
kinds cl
aqgj 1
wlgj 92
sj 4
oracal来源不同表的结果集合并
猜你喜欢
转载自yuhuiblog6338999322098842.iteye.com/blog/2128489
今日推荐
周排行