Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the differences between using index and using where in executing extra in MySQL database

2025-04-10 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

This article will explain in detail the differences between using index and using where in the implementation of extra in the MySQL database, and the content of the article is of high quality, so the editor will share it for you to do a reference. I hope you will have a certain understanding of the relevant knowledge after reading this article.

Using index

1, the column of the query is overwritten by the index, and the where filter condition is that the index is the leading column, and the Extra is Using index

Using where

1. The column of the query is not overwritten by the index, the where filter is not the leading column of the index, and the leading column in Extra is Using where.

2. The column of the query is not overwritten by the index, the where filter condition is not an index column, and Using where is used in Extra.

Using where means to filter where conditions by index or table scan. Conversely, there is no available index lookup. Of course, the cost of index scan + table return and table scan should also be considered here. The type here is all all, indicating that MySQL believes that full table scanning is a relatively low cost.

On the MySQL database implementation of extra in the using index and using where differences are shared here, I hope that the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report