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 -> Re: SQL Tunning

Re: SQL Tunning

From: Andrew Babb <andrewb_at_mail.com>
Date: Sun, 21 Mar 1999 13:59:06 +0800
Message-ID: <36F48AAA.69313DFF@mail.com>


Hi Roman,

Your problem is that NULL's are not indexed, so the only way to determine if the ADDRESS_ID column contains a NULL is to scan the table.

Sorry about that,
Andrew

Roman Gelfand wrote:

> Consider the following statement.
>
> select first_name, last_name from table_adress where address_id is null;
>
> Eventhough address_id is indexed uniquely, there is a full table scan. Is
> there a way to force index use without changing the sql statement?
>
> Thanks in advance
> Roman
Received on Sat Mar 20 1999 - 23:59:06 CST

Original text of this message

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