mysql8.0版的存储过程保存在哪个表

如果要显示存储过程:showprocedurestatus;如果要查看存储过程代码:showcreateprocedureprocedure_name;存储过程存储在infomation_schema.ROUTINES表中。

求Mysql通用的一些存储过程,如添加,删除,修改,查询

让我给你一个参考示例(用动态语句完成):有一个输入参数的参考名称不正确编辑它:/*interface*/createprocedurep_test(ini_table_namevarchar(50),--表名ini_field_namevarchar(50),--字段名ini_field_valuevarchar(50),--列值ini_where_conditionvarchar(100)--where条件)beginset@str=concat('select*from',i_table_name,'',i_where_condition,'',i_field_name,'=''',i_field_value,'''');preparestmt1from@str;executestmt1;deallocatepreparestmt1;end;/*call*/callp_test('tb_test','姓名','张桑','其中bz=0和');