一. 视图
请大家学习这篇文章, 写的非常好
https://www.cnblogs.com/cshaptx4869/p/10481749.html
二. 索引
MySQL索引的建立对于MySQL的高效运行是很重要的,索引可以大大提高MySQL的检索速度。
打个比方,如果合理的设计且使用索引的MySQL是一辆兰博基尼
的话,那么没有设计和使用索引的MySQL就是一个人力三轮车
。
索引是理论非常复杂的, 学习请参考:https://www.bilibili.com/video/BV1GV411y72H?p=30
1. 创建索引
(1). 创建表时创建

(2). 创建索引

(3). 使用修改表的方式创建索引

2. 查看索引

3. 删除索引

网友评论