Mysql Index related interview questions

the problem is this:

previous question:

wherewhere20

question:

1. 20where
2. 20where
May.22,2021

  1. cannot
  2. choose fields with high discreteness to be indexed, and index fields as few as possible
The higher the cardinality, the greater the chance that MySQL uses the index when doing joins.
Menu