带输出参数的存储过程:有错误,求助!
CREATE PROCEDURE proc_srt @writtenPass int=60,
@labPass int=60 ,
@notpassSum int OUTPUT
AS
print '--------------------------------------------------'
print ' 参加本次考试没有通过的学员:'
SELECT Sname,Students.Sno,writtenExam,
labExam FROM Students
INNER JOIN Scores2 ON
Students.Sno=Scores2.Sno
WHERE writtenExam<@writtenPass
OR labExam<@labPass
select @notpasSum=count(Sno)
from Scores2 where writtenExam<@writtenOass
or
labExam<@labPass
GO
有错误:
#####“消息 137,级别 15,状态 1,过程 proc_srt,第 16 行
必须声明标量变量 "@notpasSum"。
”