查询存储过程的名字、所属数据库、类型:
select name, db, type from mysql.proc where name = 'your_proc_name';
查询存储过程内容:
select body from mysql.proc where name = ''your_proc_name';
目前mysql的存储过程内容无法修改,只能删掉重建。
查询受影响行数:select row_count();
查询上一条插入记录的主键ID:select last_insert_id();