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:43:20 -0800
Message-ID: <F001.0048CA1A.20020701044320@fatcity.com>


On Monday 01 July 2002 14:09, Nils Höglund wrote:
> > You may have to
> > use an intermediate stage, first replacing all numbers by say '#', then
> > replacing '#' by ''.
>
> This is something I would like to avoid, since my string-fields may contain
> any characters.
>
> Any ideas?

SELECT TRANSLATE('abc123def432'
,'A0123456789','A') "replaced" FROM DUAL;

JP

-- 
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:43:20 CDT

Original text of this message

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