Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> Re: how to get oracle to ignore an index
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
-- 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
![]() |
![]() |