欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

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

程序员文章站 2024-02-29 19:02:52
drop procedure if exists my_procedure; create procedure my_procedure(in my_id in...
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;