sp_executesql 可以同时给多个变量赋值吗?
------解决方案--------------------
EXECUTE sp_executesql
N'SELECT * FROM AdventureWorks2012.HumanResources.Employee
WHERE BusinessEntityID = @level',
N'@level tinyint',
@level = 109;
------解决方案--------------------
查询分析器,输入:sp_executesql ,然后选中这个命令,按F1