DECLARE @str nvarchar(50)
DECLARE @icount INT
DECLARE @icnt INT
SET @str = 'select @icount = count(1) from test3'
EXEC sp_executesql @str,N'@icount int out',@icnt OUT
SELECT @icnt AS tt

新建选项卡

相关文章:

  • 2021-08-07
  • 2021-05-31
  • 2021-07-31
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-09-26
  • 2022-12-23
  • 2022-12-23
  • 2021-05-17
  • 2022-12-23
  • 2021-08-20
相关资源
相似解决方案