- 26
- 0
- 约5.7万字
- 约 10页
- 2017-05-30 发布于湖北
- 举报
数据库原理与应用创新
循环语句 ……… while @pass/@total 0.8 begin update Score set score = score+2 where courseno=@courseid select @pass = count(*) from Score where courseno=@courseid and score=60 end ……….. 分支语句 CASE 运算式 WHEN 运算式 THEN 运算式 …… WHEN 运算式 THEN 运算式 [ELSE 运算式] END 语法 分支语句 SqlServer基础编程考试计划采用美国ABCDE五级打分制来显示成绩: A级:90分以上 B级:80~90分 C级:70~79分 D级:60~69分 E级:60分以下 分支语句 ……… select stuno,成绩=case when score60 then E when score between 60 and 69 then D when score between 70 and 79 then C when score between 80 and 89 then B else A end from Score where courseno=@cours
原创力文档

文档评论(0)