Having multiple indices for an SQL table, is there a way to know what index will be used automatically when using a specific query?
EDIT: I wanted the question to be general, but I most开发者_开发技巧ly use MySQL, PostgreSQL and SQLite
Use the EXPLAIN PLAN statement to see what the dbms will do with your query.
精彩评论