34,590
社区成员
发帖
与我相关
我的任务
分享
declare @info int
exec wsp 'zhangsan','asdf',@info output
select @info
exec wsp @uname,@pword,@info output
select @info
便声明一个smallint变量,即可
如
--声明变量@t
...
--给变量赋初始值
...
--执行过程
EXECUTE 过程名 '输入参数@period的值', @no_id = @t OUTPUT,@info OUTPUT
declare @info int
exec wsp @info out
print @info