雅轩0310
case when语句select 语文 ,(case 语文 when 语文>=80 then '优秀' when 语文>=60 and 语文<80 then '及格' when 语文<60 then '不及格'end) as 语文是否合格,数学,(case 数学 when 数学>=80 then '优秀' when 数学>=60 and 语文<80 then '及格' when 数学<60 then '不及格'end) as 数学是否合格,英语,(case 英语 when 英语>=80 then '优秀' when 英语>=60 and 英语<80 then '及格' when 英语<60 then '不及格'end) as 英语是否合格, from 成绩表 where ......
优质英语培训问答知识库