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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: index question

Re: index question

From: paquette stephane <stephane_paquette_at_yahoo.com>
Date: Wed, 26 Jul 2000 00:24:28 -0700 (PDT)
Message-Id: <10570.112974@fatcity.com>


Not at all !

In the case ...on table1(empno, ename), queries speciying a where clause with ename = ... will not use the index.

In the case ...on table1(ename, empno), queries speciying a where clause with empno = ... will not use the index.

To use an index, you must adress the leading part of it.

In the case where a query used both fields in the where clause
where ename =... and empno=....
then performanace will be better if the first field in index is the most selective one.


Stephane Paquette
DBA Oracle
stephane_paquette_at_yahoo.com
spaquette_at_houra.fr
(33) 01 53 93 06 50

Do You Yahoo!?
Get Yahoo! Mail – Free email you can access from anywhere! Received on Wed Jul 26 2000 - 02:24:28 CDT

Original text of this message

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