Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: When is an index used??
Hi Matthias,
To take advantage of the index drop the ORDER BY clause from your query
>Matthias Kramer wrote:
>>
>> SELECT field FROM table ORDER BY field
>>
The ORDER BY is forcing a sort after the result set is extracted from the database. If you still don't see a significant improvement (here I am making an assumption that the table you are querying is fairly large) then add a hint to use the index.
Regards
Jerry
Jerry Gitomer Since I know how to spell DBA, I became one. Received on Sun May 10 1998 - 08:54:45 CDT
![]() |
![]() |