17,089
社区成员
发帖
与我相关
我的任务
分享
drop procedure if exists a;
DELIMITER $$
CREATE PROCEDURE a(
in s int,
out d int
)
begin
if s=0 then set d=13;
else set d=4;
end if;
select s,d;
end;$$
delimiter ;
set @q=3;
call a(@q,@w);
select @q,@w;