mysql的 select count(distinct column)

select  department,count(distinct project_id) as projectNum
from cms_system_project_department
group by department

猜你喜欢

转载自www.cnblogs.com/YuyuanNo1/p/13389397.html