深入解析MySQL(7)——SQL调优
1.优化索引
1.1 初始化数据
delimiter //
create procedure p_init_index_data ()
begin
declare id bigint default 100000;
declare age tinyint default 18;
declare gender bigint default 1;
declare class_id bigint default 1;
declare count int default 0;