tags:

views:

13

answers:

1

The table has many different indexes, and some indexes share one field. I want to know which index used in a select query.

+2  A: 

No problem. Just issue your SELECT with EXPLAIN prepended. Like this:

explain select field1, field2 from table1
shylent