第五章:索引的使用-索引的基本使用
直接学习:https://edu.****.net/course/play/27328/362532
索引的基本使用
#1、什么是索引?索引是一种特殊的数据结构,类似于图书的目录,它能极大的提升数据库查询的效率。
#2、常见的索引种类:
#3、示例代码如下:
show index from employee\G;
create index index_name on employee (name);
show index from employee\G;
explain select * from employee where name =‘柳锋’;
explain select * from employee where name like ‘柳锋’;
drop index index_name on employee;
show index from employee\G;