CREATE procedure tong1 @nlsum int output as begin set @nlsum=(select sum(nl) from table22) end
请问@nlsum 作为输出参数~在查询分析器里怎么把@nlsum的值print出来! 格式我忘记了 !
CREATE procedure tong1 @nlsum int output as begin set @nlsum=(select sum(nl) from table22) print @nlsum end
execute tong1 1