存储过程:
创建存储过程
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;
函数:
posted on 2014-06-06 00:07 天使2013 阅读(101) 评论(0) 编辑 收藏 举报