declare @a as INT
declare @b as INT

exec sp_executesql N'select @a=3,@b=4',N'@a int out,@b int out',@a OUTPUT ,@b OUTPUT

select @a, @b

posted on 2021-08-12 11:50  撒娇的小熊  阅读(265)  评论(0编辑  收藏  举报