前辈们帮我看看,怎么解决
if exists(select * from sysobjects where name='wwe' and type='p')drop proc wwe
go
create proc wwe @ID INT,@CD int output, @NM varchar(8) output
as
select @CD= student_code from stident_info where student_id=@ID
select @NM= student_name from stident_info where student_id=@ID
return
go
declare @return_CD int
declare @return_NM VARCHAR(8)
EXEC WWE @ID='119',@RETURN_CD OUTPUT,@RETURN_NM OUTPUT
SELECT @return_CD AS '学号',@return_NM as '姓名'
go
错误提示:必须传递参数个数 2,并以 '@name = value' 的形式传递后续的参数。一旦使用了 '@name = value' 形式之后,所有后续的参数就必须以 '@name = value' 的形式传递。