SQL求解决.。........。。。。。。

基于学生成绩信息表score创建一个带返回参数的存储过程,用来查询分数。在存储过程中声明两个变量:一个作为分数查询条件;一个作为返回值的接收参数。利用exec关键字执行该存储过程。查询结果会自动保存在变量@stuscore中,利用此返回值判断分数等级。

img

img

alter PROCEDURE test_return
    @score int,@result int output
AS
BEGIN
    SET NOCOUNT ON;

    select @result = COUNT(0) from score where 分数>@score

END

go 

declare @s int,@stuscore int

select @s = 85

exec dbo.test_return @s,@stuscore output

select @stuscore

有相关表结构以及数据
吗?