您的位置:宽带测速网 > mysql教程 > MySQL中进行sql优化的情况是什么

MySQL中进行sql优化的情况是什么

2025-06-10 18:26来源:互联网 [ ]

sql优化简介1、什么情况下进行sql优化

性能低、执行时间太长、等待时间太长、连接查询、索引失效。

2、sql语句执行过程

(1)编写过程

selectdistinct...from...join...on...where...groupby...having...orderby...limit...

(2)解析过程

from...on...join...where...groupby...having...selectdistinct...orderby...limit...
3、sql优化就是优化索引

索引相当于书的目录。

索引的数据结构是B+树。