1创建索引
#create index 索引名 on 表名(列名) create index name_index on index_test(name);
2删除索引
#drop index 索引名 on 表名 drop index name_index on index_test;
3查看语句执行时间
set profiling=1; 你要查看的语句 show profiles;
1创建索引
#create index 索引名 on 表名(列名) create index name_index on index_test(name);
2删除索引
#drop index 索引名 on 表名 drop index name_index on index_test;
3查看语句执行时间
set profiling=1; 你要查看的语句 show profiles;