Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.tools -> Re: Parsing a phone number

Re: Parsing a phone number

From: Paul Q <paulq_at_home.com>
Date: Fri, 17 Nov 2000 02:40:42 GMT
Message-ID: <KU0R5.114488$78.35928335@news3.rdc1.on.home.com>

What about the replace function ?

update table
set field=replace(replace(replace(field,')'),'('),'-')

<steveee_ca_at_my-deja.com> wrote in message news:8v1f4g$ufi$1_at_nnrp1.deja.com...
> Hi everyone,
>
> I've just been asked to create a script that will go through a field of
> phone numbers that have been stored 'free form' (e.g. (614) 222-3333,
> 614-222-3333, 222-3333 etc) and strip out all of the punctuation and
> spaces
> so that only the numerals are stored (i.e. 6142223333).
>
> This is a one time only thing so I don't have to be too worried about
> performance..we'll run it at 2 am if we have to :)
>
> Any help would be deeply appreciated..
>
> Oracle 8.0 , Sun Solaris 2.6
>
> Thanx in advance,
>
> Steve
>
>
> Sent via Deja.com http://www.deja.com/
> Before you buy.
Received on Thu Nov 16 2000 - 20:40:42 CST

Original text of this message

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