declare @a char(8),@b varchar(10),@c numeric(5,2)
declare xxx cursor
for select 学号,课程名,成绩
from score
open xxx

欢迎免费使用小程序搜题/刷题/查看解析,提升学历,成考自考报名,论文代写、论文查重请加客服微信skr-web

declare @a char(8),@b varchar(10),@c numeric(5,2)
declare xxx cursor
for select 学号,课程名,成绩
from score
open xxx
fetch xxx into @a,@b,@c
while @@fetch_status=0
begin
print @a+replicate(' ',3)
+@b+str(@c)+replicate(' ',3)
+(case
when @c>=90 then '优秀'
when @c>=70 then '良好'
when @c>=60 then '及格'
else '不及格'
end
)
fetch from xxx into @a,@b,@c
end
close xxx
deallocate xxx

显示出score表中每个成绩记录,并在每条记录最后给出优秀、良好、及格、不及格等相应等级。

访客
邮箱
网址

通用的占位符缩略图

人工智能机器人,扫码免费帮你完成工作


  • 自动写文案
  • 自动写小说
  • 马上扫码让Ai帮你完成工作
通用的占位符缩略图

人工智能机器人,扫码免费帮你完成工作

  • 自动写论文
  • 自动写软件
  • 我不是人,但是我比人更聪明,我是强大的Ai
Top