34,590
社区成员
发帖
与我相关
我的任务
分享
declare @id int, @cn int
select top 1 @id = id from syscolumns
exec sp_executesql
N'select @cn=count(1) from syscolumns where id=@id',
N'@cn int out,@id int', @cn out, @id
select @cn, count(1) from syscolumns where id=@id