获取存储过程中得到的 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;
MySQL存储过程int参数输出参数变量
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;
MySQL存储过程int参数输出参数变量
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货