存储过程:
创建存储过程
delimter $$
create procedure select_all(in a_id samllint)
begin
select * from A where id=a_id;
end
$$
调用存储过程
call select_all(1); //传参数给存储过程
删除存在的存储过程
drop procedure if exists select_all;
函数: