if的用法(sql Server)

来源:互联网 发布:syntaxhighlighter.js 编辑:程序博客网 时间:2024/06/04 17:40
if (select avg(degree) from score where cno='3-105')>80
begin 
print '课程:3-105'
print '考试成绩还不错'
end
else
begin
print '课程:3-105'
print '考试成绩一般'
end
原创粉丝点击