oracle一个sql查出多个字段的count数



 select count(t.id) as ct_id,count(case when t.conscripts_name='王五' then 'ct_name' end)  name from CS_CONSCRIPTS_INFO t



 

猜你喜欢

转载自sky-xin.iteye.com/blog/2197015