标签:
declare @sql nvarchar(2000) declare @cou int declare @id varchar(20) set @id=‘1‘ set @sql=‘select @count=count(*) from emp where id=@id‘ exec sp_executesql @sql, N‘@count int out,@id varchar(20)‘, @cou out ,@id print @cou
@cou接收 @count传出的值
标签:
原文地址:http://www.cnblogs.com/langu/p/4186014.html