在调用存储过程时假如有输出参数就必须要使用output做修饰符 示例如下 alter proc ABC ( @OutValue nvarchar() output ) as set @OutValue=aabbcc select ab from ab print @OutValue alter proc ABCV as Declare @OutValuea nvarchar() Exec ABC @OutValue=@OutValuea output select @OutValuea return |