declare @num int, @sqls nvarchar(4000)
set@sqls='select @a=count(*) from tableName '
exec sp_executesql @sqls,N'@a int output',@num output
select@num

详细参见:http://www.cnblogs.com/zhhe0800/archive/2011/07/21/2113346.html

相关文章:

  • 2021-11-02
  • 2021-08-16
  • 2021-08-19
  • 2021-12-29
  • 2021-06-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-06
猜你喜欢
  • 2022-02-09
  • 2022-12-23
  • 2021-11-21
  • 2021-08-21
  • 2022-12-23
  • 2022-12-23
  • 2022-01-16
相关资源
相似解决方案