标签:数据 ar 数据库 sql table har sp rom
declare @tablename nvarchar(50)
declare @count int
set @tablename = ‘SplitzRank‘
declare @sqlstr nvarchar(512)
set @sqlstr = ‘select @count=count(*) from ‘+@tablename
select @sqlstr
exec sp_executesql @sqlstr,N‘@count int output‘,@count output
select @count
标签:数据 ar 数据库 sql table har sp rom
原文地址:http://www.cnblogs.com/Jeece/p/3910099.html