组装sql字符串,丢给exec sp_executesql执行exec sp_executesql N'exec sp_executesql N''select * from TESTTEST.dbo.Employees where Title=@title'', N''@title varchar(30)'', @title=''Employee'''注意:这里是执行一个带有输入参数的sql语句,用两层exec sp_executesql嵌套实现