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: Tim Gorman <Tim_at_SageLogix.com>
Date: Mon, 01 Jul 2002 05:58:26 -0800
Message-ID: <F001.0048CB25.20020701055826@fatcity.com>


Instead of "#" character, replace with an unprintable character such as "CHR(1)"?

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).

-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Tim Gorman
  INET: Tim_at_SageLogix.com

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 - 08:58:26 CDT

Original text of this message

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