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

Home -> Community -> Mailing Lists -> Oracle-L -> Re: Remove numbers from string

Re: Remove numbers from string

From: Jan Pruner <jan_at_pruner.cz>
Date: Mon, 01 Jul 2002 04:03:23 -0800
Message-ID: <F001.0048C998.20020701040323@fatcity.com>


Use TRANSLATE function
(http://otn.oracle.com/docs/products/oracle8i/doc_library/817_doc/server.817/a85397/function.htm#84984)

SELECT TRANSLATE('abc123def432'
,'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'
,'ABCDEFGHIJKLMNOPQRSTUVWXYZ') FROM DUAL; JP

On Monday 01 July 2002 13:18, you wrote:
> Is there any way to remove all numbers from a string?
>
> The string might look like this: 'abc123def432'
> and I wan't it to look like this: 'abcdef'.
>
> I'm using Oracle 8.
>
>
> Thanks in advance!

-- 
         Pruner Jan
       jan_at_pruner.cz
     http://jan.pruner.cz/
-----------------------------
Only Robinson Crusoe had all his work done by Friday
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Jan Pruner
  INET: jan_at_pruner.cz

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).
Received on Mon Jul 01 2002 - 07:03:23 CDT

Original text of this message

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