性能低、执行时间太长、等待时间太长、连接查询、索引失效。
(1)编写过程
select distinct ... from ... join ... on ... where ... group by ... having ... order by ... limit ...
(2)解析过程
from ... on ... join ... where ... group by ... having ... select distinct ... order by ... limit ...
索引相当于书的目录。
索引的数据结构是B+树。
以上是MySQL中什么情况下进行sql优化的详细内容。更多信息请关注PHP中文网其他相关文章!