Flashcard

Composite Indexes & Column Order

How composite index column order and the leftmost-prefix rule determine whether EXPLAIN shows an index seek or a scan.

Question

In a composite index (a, b, c), why does column order matter, and how does EXPLAIN reveal misuse?

Click to reveal answer