简体   繁体   中英

EXPLAIN PLAN: what is the difference between “using where” and “using index” in MYSQL

What is the major difference between 'uing where' and 'using index' in EXPLAIN plan of MYSQL.

I think this is just the searching for the records from disc vs searching from memory respectively.

Thanks, -UDAY

The documentation explains the difference:

  • Using index means the requested column data can be fetched from the index only, without having to read the row data proper.

  • Using where means the index is actually used for lookups, instead of only for fetching the requested column data.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM