1,show create procedure procedure_name;2,show procedure status like 'procedure_name'3,select * from mysql.proc where name='procedure_name'4、在具体分区的数据下drop procedure procedure_name;【阅读全文】
1、修改表结构Alter table history_text drop primary key, add index (id), drop index history_text_2, add index history_text_2 (itemid, id);Alter table history_log drop primary key, add index (id), drop index history_log_2, add index history_log_2 (itemid, id)2、创建存储过程,写成一个sql文件,一次性...【阅读全文】
1、修改表结构Alter table history_text drop primary key, add index (id), drop index history_text_2, add index history_text_2 (itemid, id);Alter table history_log drop primary key, add index (id), drop index history_log_2, add index history_log_2 (itemid, id)2、创建存储过程,写成一个sql文件,一次性...【阅读全文】