SQL语句添加班级

2025-03-10 22:05:30
推荐回答(2个)
回答1:

眼花,没看到学院表,
系部表中没有 学院ID 列
班表中没有 系部ID列

你再整整看吧。

回答2:

select 班级,学号,(case when 成绩>90 then '优'
when 成绩>80 and 成绩<=90 then '良'
when 成绩>60 and 成绩<=80 then '中'
else '差' end) as 成绩
from table_name