declare @tname varchar(20),@num int
set @tname='Players_Log_L10001'
declare @sql Nvarchar(1000)=N'select @num=COUNT(*) from '+@tname+'.dbo.Log_Party_Join';
Exec sp_executesql @sql,N'@num int output',@num output
select @num

相关文章:

  • 2021-09-01
  • 2022-12-23
  • 2022-12-23
  • 2022-02-08
  • 2022-12-23
  • 2022-02-18
猜你喜欢
  • 2021-11-06
  • 2021-08-02
  • 2022-12-23
  • 2022-12-23
  • 2021-04-14
  • 2021-10-27
  • 2021-08-05
相关资源
相似解决方案