为什么我在mysql中调用过程时会得到空值?

时间:2019-10-12 15:13:21

标签: mysql-workbench

delimiter $$
create procedure fp10 ( in d varchar(30),out di int)
begin
select id into di from a1 where department  = d;
end $$
delimiter ;

 call fp10('IT',@di);
 select @di;

0 个答案:

没有答案