首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > SQL Server >

怎么在一个存储过程中 使用另外一个存储过程返回的output类型参数值

2012-01-13 
如何在一个存储过程中 使用另外一个存储过程返回的output类型参数值如题!![解决办法]create procedure sp_

如何在一个存储过程中 使用另外一个存储过程返回的output类型参数值
如题!!

[解决办法]
create procedure sp_test1
@count int output
as
begin
select @count=count(*) from syscolumns
end
go

create procedure sp_test2
as
begin
declare @num int
exec sp_test1 @num output

select @num
end
go

exec sp_test2
go

drop procedure sp_test1,sp_test2
go

热点排行