--创建名为 GetStuCou_Out 的有输入参数和输出参数的存储过程
create procedure GetStuCou_Out
@StuNo    nvarchar(64),
@Height nvarchar(32) output
as
begin
    if(@StuNo is not null and @StuNo <> '')
    begin
        select @Height=S_Height
        from Student
        where S_StuNo=@StuNo
    end
    else
    begin
        set @Height='185'
    end
end
--执行名为 GetStuCou_Out 的有输入参数和输出参数的存储过程
execute GetStuCou_Out '005',null