tags:

views:

36

answers:

1

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

+1  A: 

Use the EXPLAIN PLAN statement to see what the dbms will do with your query.

Ned Batchelder