[求助]关于if exists的比较菜的问题
if exists(select * from stuMarks where writtenExam>80)
begin
print '本班有人笔试成绩高于80分,每人加2分,加分后成绩为:'
update stuMarks set writtenExam=writtenExam+2
select * from stuMarks
end
else
begin
print '没有高于80分的,每人加5分,加分后成绩为'
update stuMarks set writtenExam=writtenExam+5
select * from stuMarks
end
go
我只想写红色的那句,为什么后面不跟语句会报错呢?