Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
实际上我的要求如下所示,我需要获取学生详细信息以及分数和结果 条件: 如果分数超过 70,则结果将通过,否则可以根据分数从数据库中获取失败分数列需要找出结果
SELECT s.*, case when score is null then '--' when score > 70 then 'pass' else 'fail' end as result from students s