第五章:索引的使用-索引的基本使用

直接学习:https://edu.csdn.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;

发布了107 篇原创文章 · 获赞 6 · 访问量 968

猜你喜欢

转载自blog.csdn.net/weixin_43597208/article/details/105481570
今日推荐