MySQL PLSQL Demo - 001.创建、调用、删除过程

 

drop procedure if exists p_hello_world;

create procedure p_hello_world()
begin
    select sysdate();
end;

call p_hello_world();

 

drop procedure if exists p_hello_world;

create procedure p_hello_world(in v_id int)
begin
    select * from t_user t where t.id = v_id;
end;

call p_hello_world(1);

 

posted @ 2015-07-01 18:38  nick_huang  阅读(614)  评论(0)    收藏  举报