I\'m kinda ashamed of asking this since I\'ve been working with MySQL for years, but oh well.
I have a table with two fields, a and b. I will b
a
b
For the example you have index set #3 is optimal. Mysql will choose the single A and B indices for single column where clauses, and use the compound index for the A & B where clause.