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: how to get oracle to ignore an index

Re: how to get oracle to ignore an index

From: Daniel Fink <Daniel.Fink_at_Sun.COM>
Date: Fri, 06 Feb 2004 13:47:39 -0700
Message-id: <4023FD6B.2779093B@sun.com>


I believe that you would have to use a PK or a unique index w/ a Not Null constraint. Unique indexes/constraints do not preclude the existence of NULLS. This is why the PK constraint is not the same as a unique constraint.

Daniel Fink
"Bobak, Mark" wrote:

> Actually, it will ignore the index if the columns are nullable, even if =
> no null values currently exist. If you repeat your experiment w/ a =
> primary key or unique index, I think you'll find Oracle will use the =
> index when directed to do so by a hint, even if it's less efficient to =
> do so.
>
> -Mark



Please see the official ORACLE-L FAQ: http://www.orafaq.com

To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------
Received on Fri Feb 06 2004 - 14:47:39 CST

Original text of this message

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