过程1:带返回值:
drop procedure if exists proc_addNum;
create procedure proc_addNum (in x int,in y int,out sum int)
BEGIN
SET sum= x + y;
end
然后,执行过程,out输出返回值:
call proc_addNum(2,3,@sum);
select @sum;
过程2:不带返回值:
drop procedure if exists proc_addNum;
create procedure proc_addNum (in x int,in y in