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: Gombos Bertalan <bgombos_at_freemail.c3.hu>
Date: Mon, 22 Mar 1999 09:36:01 +0000
Message-ID: <36F60F01.6B0D01E8@freemail.c3.hu>


Roman Gelfand wrote <7d1gae$diu$1_at_news.monmouth.com> ...
>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?
An index doesn't contain NULL-values, so there's no index which is useable in this case.

Bye:
--

    .---,                            G o m b o s  B e r t a l a n
    :   :
    :---'-. ,---. ,--. ,-.-.       rendszerfejleszto, Oracle mernok
    :     : :--   :      ;          mailto:bgombos_at_freemail.c3.hu
   ,' '---' '---' '      `-'
-- : ------------------------- Az elet megis egy habostorta? --- '10^2-1
Received on Mon Mar 22 1999 - 03:36:01 CST

Original text of this message

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