创建存储过程
create function 函数名([参数1,参数2,...])
returns 返回值类型
修改存储过程
ALTER function 函数名 SQL语句代码块
执行存储过程
call 函数名([参数1,参数2,...])
删除存储过程
drop function [IF EXISTS] 过程名;
查看函数的状态
-
mysql> show function status like 'film_in_stock'\G
查看函数的定义
通过查看information_schema.Routines了解存储过程和函数的信息
-
select *from routines where routine_name = \'film_in_stock\' \\G
来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/26435490/viewspace-1261980/
,如需转载,请注明出处,否则将追究法律责任。