mysql的explain
时间: 2023-09-09 08:09:18 浏览: 102
回答: 在MySQL中,EXPLAIN是一个关键字,用于显示MySQL如何使用索引来处理SELECT语句以及连接表。它可以帮助你选择更好的索引并编写更优化的查询语句。通过在SELECT语句之前添加EXPLAIN关键字,MySQL会返回执行计划的信息,而不是执行该SQL语句。使用EXPLAIN可以模拟优化器执行SQL语句,分析查询语句或结构的性能瓶颈。除了普通的EXPLAIN,还有两个变种:EXPLAIN EXTENDED和EXPLAIN PARTITIONS。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [MySQL数据库:第十七章:Explain详解](https://blog.csdn.net/java_wxid/article/details/111881486)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *3* [MySQL-Explain详解](https://blog.csdn.net/fsdfkjai/article/details/121770629)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文