Hello,
I'm slightly stunned seeing a result from the EXPLAIN statement.

I have a table "T" with columns "a", "b", "c", "d" and a multi-column index
on (a, b, c)

I perform a query:

EXPLAIN SELECT * FROM T WHERE a = <some_value>, d = <some_value>, b =
<some_value>

The result tells me that MySQL is taking index (a, b, c). Why?

Furthermore, when I add another multi-column index (a, d, b) to match the
query above, EXPLAIN still tells me that it uses index (a, b, c).

Can someone enlighten my on this one???
Thanks,
Tobias.


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to