#查询储存过程
#查询数据库中已创建的存储过程
show procedure status;
#指定数据库名 查询存储过程
show procedure status where db='student';
#使用like关键字匹配存储过程名称
show procedure status like '%name%';
#修改存储过程
#使用alter procedure语句修改创建存储过程时定义的特性
#将存储过程stu_student的qul security特性修改为invoker
alter procedure stu_student sql security invoker;
#注意 使用alter 关键字只能修改存储过程的特性,如果想修改存储过程的内容,需要先删除该存储过程,再进行重新创建
#删除存储过程
#使用drop procedure语句删除已创建的存储过程
#删除已创建的存储过程stu_student
drop procedure if exists stu_student;
#注意 创建存储过程前,可以使用if exists语句检查其是否已存在,如果不存在,再进行创建
版权声明:本文为weixin_68548138原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。