MySQL Forums
Forum List  »  Newbie

column indexing strategy
Posted by: Michael Corr
Date: May 12, 2005 07:42PM

Hi,
I'm trying to figure out the best strategy for indexing columns in a table. Is it better to index a column that is often found in the SELECT part of a query or the WHERE part?

For example:
SELECT col1 FROM table WHERE col2=x;

Is it more important/effective to INDEX (col1) or INDEX (col2) when I create the table?

thanks,
Michael

Options: ReplyQuote


Subject
Written By
Posted
column indexing strategy
May 12, 2005 07:42PM


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.