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);
查询这两个int 类型参数有问题。这两个参数如何获取
select @q,@w;
...全文
1772打赏收藏
mysql存储过程输出参数为 int 类型问题
获取存储过程中得到的 int 类型数据 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); 查询这两个int 类型参数有问题。这两个参数如何获取 select @q,@w;