刚学存储过程,对参数不是怎么理解,求一个实例
------解决方案--------------------
- SQL code
编写一个存储过程,包含一个输入参数, 指定阶乘最大值,包含一个输出参数,返回阶乘的值。create proc pro @n int,@sum int outputas declare @index int set @index=1 set @sum=1while(@index<[email protected]) begin set @[email protected][email protected] set @[email protected]+1 end declare @sum intexec pro 10,@sum outputselect @sum as 结果为