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 -> How to avoid full table access

How to avoid full table access

From: Thomas Koester <koester_at_dspcom.de>
Date: Sat, 22 Dec 2007 18:03:01 +0100
Message-ID: <fkjg06$fak$1@svr7.m-online.net>


Hello,

is it possible to avoid a full table access when selecting records with Like and or.

Example:
select * from customers where nr like '1%' or name like 'A%'

both colums are indexes and analyzed. Oracle takes the indexes when searching for each value alone

Thank you
Thomas Received on Sat Dec 22 2007 - 11:03:01 CST

Original text of this message

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