msyql中explain
时间: 2023-09-10 09:10:26 浏览: 115
在MySQL中,使用EXPLAIN命令可以查询SQL语句的执行计划。这个命令可以向我们展示MySQL接收到一条SQL语句的执行计划。根据EXPLAIN返回的结果,我们可以了解我们的SQL语句的写法是否合适,是否会导致查询性能问题,从而可以不断修改和调整查询语句。EXPLAIN的结果包含了12个列,分别是id、select_type、table、partitions、type、possible_keys、key、key_len、ref、rows、filtered和Extra。通过分析这些列的值,我们可以了解查询的执行方式、使用的索引情况以及其他相关的执行信息。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [详解mysql中explain的type](https://download.csdn.net/download/weixin_38566318/14831633)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [Mysql的explain详解](https://blog.csdn.net/weixin_44143114/article/details/118526637)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [mysql中explain详解](https://blog.csdn.net/weixin_41779703/article/details/120483830)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文