SQL server Exec中变量的传递
declare @sql2 nvarchar(500) , @count int
set @sql2 = 'select @COUNT = 1 '
execute sp_executesql @sql2, N'@COUNT int output', @count output
set @sql2 = 'select @COUNT = 1 '
execute sp_executesql @sql2, N'@COUNT int output', @count output