sql,统计值为null时,能统计处值
select count(case when c_project_id is null then 'null' else c_project_id end),c_project_id from consultant group by c_project_id
发布时间: 2012-09-12 09:21:30 作者: rapoo
sql,统计值为null时,能统计处值
select count(case when c_project_id is null then 'null' else c_project_id end),c_project_id from consultant group by c_project_id