MySQL Forums
Forum List  »  InnoDB

Re: What index works best?
Posted by: Rick James
Date: July 14, 2016 02:00PM

INDEX(code, name, type)

works for
WHERE code ...
WHERE code = '...' AND name ...
WHERE code = '...' AND name = '...' AND type ...
But not for
WHERE name... (without mention of code). Etc.

Use my cookbook to answer your own question:
http://mysql.rjweb.org/doc.php/index_cookbook_mysql
(Or ask us about specific queries.)

Options: ReplyQuote


Subject
Views
Written By
Posted
463
July 12, 2016 01:36PM
Re: What index works best?
504
July 14, 2016 02:00PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.