Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Re: ** SQL QUERY TUNING
In article <353770A0.35DD_at_w-4.de>,
Jürgen Kling <jkling_at_w-4.de> wrote:
>Subject: ** SQL QUERY TUNING
>From: Jürgen Kling <jkling_at_w-4.de>
>Organization: Concert Internet Plus
>Date: Fri, 17 Apr 1998 17:09:20 +0200
>Newsgroups: comp.databases.oracle.misc
>
>Who can help me to optimize the following SQL-Statement
>
>
>
>select * from table
>
>where tab_column = 1
>
> or tab_column is null
>
>
>
>Thje column TAB_COLUMN having an index, but ORACLE cant't use it. Thus
>
>Oracle do an Full Table scan.
>
>
>
>
>
>jkling_at_w-4.de
Even without the NULL values, the 'or' will prevent using indexes. Try to prevent using 'or' in the where clause.
Ronald
![]() |
![]() |