Mysql一个Select 查询出表内语文及格数学及格的算合格,其他算不合格的统计人数 miaowYHu 2023-11-08 42 阅读1分钟 select sum(case when (chinese >=60 and math>=60) then 1 else 0 end) as 合格人数 , sum(case when (chinese < 60 or math < 60) then 1 else 0 end) as 不合格人数 from class;