Re: multi-part index and when it is used?
The only query you listed that might not use the index is SELECT * FROM phonebook; The reason that one might not is because it retrieves too much data. The only way it would use an index would be if the index was a covering index (ie. * was all part of the same index.
What do you mean by that statement? Especially the comment about the covering index.
Also if you did SELECT * FROM phonebook ORDER BY lastName, firstName, middleInitial that would use the index I've created on that? Or would it do whichever it deems as the most optimal?
Subject
Views
Written By
Posted
4942
January 12, 2005 05:05PM
2839
January 12, 2005 09:21PM
Re: multi-part index and when it is used?
2095
January 13, 2005 07:18AM
2222
January 13, 2005 07:36AM
2042
January 13, 2005 07:39AM
2095
January 14, 2005 01:29AM
2261
January 14, 2005 10:03AM
2149
January 14, 2005 04:05PM
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.