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: Frank <frankbo_at_interaccess.nl>
Date: Wed, 6 Sep 2000 12:35:05 +0200
Message-ID: <8p56l6$4se$1@porthos.nl.uu.net>

You don't say what version...
If 8.1.x, introduce a function based index for a function that will return the middle portion of a phone#. instr pops to mind.

BTW, what significance has the middle part of a telephone#? Weren't you told *not* to code information into unique identifiers?

--
Frank
<qiangye_at_my-deja.com> schreef in berichtnieuws
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?
>
> Thanks in advance!
>
>
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
Received on Wed Sep 06 2000 - 05:35:05 CDT

Original text of this message

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