在調用存儲過程時
示例如下
alter proc ABC
(
@OutValue nvarchar(
)
as
set @OutValue=
select a
print @OutValue
alter proc ABCV
as
Declare @OutValuea nvarchar(
Exec ABC @OutValue=@OutValuea output
select @OutValuea
return
From:http://tw.wingwit.com/Article/program/SQL/201311/11186.html