declare@valvarchar(100)
declare@Sqlnvarchar(4000)
set@Sql='Set @val=5'
exec Sp_executeSql @Sql, N'@val varchar(100) output',@val output
select@valas Value
转载于:https://www.cnblogs.com/thinkfate/archive/2012/08/15/2640149.html
declare@valvarchar(100)
declare@Sqlnvarchar(4000)
set@Sql='Set @val=5'
exec Sp_executeSql @Sql, N'@val varchar(100) output',@val output
select@valas Value
转载于:https://www.cnblogs.com/thinkfate/archive/2012/08/15/2640149.html