• 回答数

    2

  • 浏览数

    314

咚董董动
首页 > 英语培训 > 三字段英文

2个回答 默认排序
  • 默认排序
  • 按时间排序

雅轩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 ......

三字段英文

333 评论(8)

平亮装潢小余

select case when 语文>=80 then '优秀' when 语文>=60 then '及格' else '不及格' end 语文 ,case when 数学>=80 then '优秀' when 数学>=60 then '及格' else '不及格' end 数学 ,case when 英语>=80 then '优秀' when 英语>=60 then '及格' else '不及格' end 英语 from table_t

248 评论(13)

相关问答