创建一个存储过程

create procedure porc ()               #存储过程名称porc
begin 
    select `user` from mysql.`user`;    #sql语句
end;

调用存储过程

call porc();

删除存储过程

DROP PROCEDURE IF EXISTS porc;