mysql教程

超轻量级php框架startmvc

mysql 存储过程输入输出参数示例

更新时间:2020-04-28 01:05:01 作者:startmvc
dropPROCEDUREifexistsmy_procedure;createPROCEDUREmy_procedure(inmy_idint,outmy_namechar)BEGINselectlist_nameintomy_namef

drop PROCEDURE if exists my_procedure; 
create PROCEDURE my_procedure(in my_id int,out my_name char) 
BEGIN 
 select list_name into my_name from aa_list where list_id=my_id; 
end; 
call my_procedure(24,@a); 
select @a;
mysql 存储过程