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: how to improve "select num from telebook where num like '%345%'"

Re: how to improve "select num from telebook where num like '%345%'"

From: roblop <roblop_at_friko2.onet.pl>
Date: Wed, 6 Sep 2000 19:43:48 +0200
Message-ID: <8p5vmu$mqc$1@news.ipartners.pl>

qiangye_at_my-deja.com napisa³(a) w wiadomo¶ci: <8p50l5$sdg$1_at_nnrp1.deja.com>...
>We have a huge table storing all of the telephone numbers of the city.
>The query is to retrieve all the numbers which contain "345" in the
>middle position. The current performance is too slow. Anybody knows how
>to improve the performance like that query?

Maybe this help:

create index num_ind on telebook(num);
select /*+index_ffs(telebook num_ind)*/ num from telebook where num like '%345%';

Regards,Roblop Received on Wed Sep 06 2000 - 12:43:48 CDT

Original text of this message

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