Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Selecting data using index

Selecting data using index

From: Juan Carlos <jc_va_at_hotmail.com>
Date: Sun, 4 Jul 1999 07:25:06 -0700
Message-ID: <7lngd7$nof$1@bgtnsc01.worldnet.att.net>


I believe I heard that when you "select ssn from employees" and ssn is indexed, that oracle may use the index, if the column(s) are contained in the index. Further, I know you can give a hint to "suggest" it use the index. But it doesn't sound like a good idea to write production code relying on this because someone can change the optimizer (delete stats) or drop the index. Is there a way to "force" oracle to use the index, or return an error if it can't for some reason? Thanks. Received on Sun Jul 04 1999 - 09:25:06 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US