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 mostly use MySQL, PostgreSQL and SQLite
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 mostly use MySQL, PostgreSQL and SQLite
Use the EXPLAIN PLAN statement to see what the dbms will do with your query.