sql server exec sp_executesql 输出参数

declare @a as int

exec sp_executesql N'set @a=9',

N'@stockCount int,@a int out',

3,@a out

select @a

posted @ 2011-09-28 09:44  suger  阅读(491)  评论(0编辑  收藏  举报