--笔试成绩提高五分 运用case when 条件语句
update stuMarks set writtenexam=(case when writtenExam>95 then 100 else writtenexam+5 end)
--笔试成绩提高五分,实验成绩为空的变为0
update stuMarks set writtenexam=(case when writtenExam>95 then 100
when writtenexam<95 then writtenexam+5
when labExam is null then 0 end)
update stuMarks set writtenexam=(case when writtenExam>95 then 100 else writtenexam+5 end)
--笔试成绩提高五分,实验成绩为空的变为0
update stuMarks set writtenexam=(case when writtenExam>95 then 100
when writtenexam<95 then writtenexam+5
when labExam is null then 0 end)