MySQL Forums
Forum List  »  Optimizer & Parser

Re: inner join on range criteria: unable to use index?
Posted by: Joseph Fisk
Date: August 12, 2008 09:30AM

Isn't the index arranged something like this:

ColA ColB
1 1
1 2
1 3
1 4
2 1
2 2
2 3
2 4

If you're looking for all rows with colA > 1 and colB < 3, you go to the "2" section of colA in the index and then take all the rows in that section above "3" in the colB index. No table scanning necessary.

Or am I wrong?

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: inner join on range criteria: unable to use index?
3129
August 12, 2008 09:30AM


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.