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: TRANSLATE

RE: TRANSLATE

From: <John.Hallas_at_vodafone.co.uk>
Date: Wed, 31 Jul 2002 06:53:37 -0800
Message-ID: <F001.004A7597.20020731065337@fatcity.com>


Not very elegant but it works

create table test (a varchar2(30));
SQL> insert into test values
  2 ('comma'||chr(44)||'squote'||chr(34)||'dquote'||chr(39))   3 /

1 row created.

SQL> select * from test;

A



comma,squote"dquote'

select replace(replace(replace(a,chr(44),''),chr(34),''),chr(39),'') "New String" from test

New String



commasquotedquote

HTH John

-----Original Message-----
Sent: 31 July 2002 13:24
To: Multiple recipients of list ORACLE-L

Hi,

how can i use TRANSLATE to take out commas(,)single quotes(') and double quotes(") from a string ?

Cheers



Do You Yahoo!?
Yahoo! Health - Feel better, live better http://health.yahoo.com
--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author: Imran Ashraf
  INET: imran9a_at_yahoo.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).
--

Please see the official ORACLE-L FAQ: http://www.orafaq.com
--

Author:
  INET: John.Hallas_at_vodafone.co.uk
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 Wed Jul 31 2002 - 09:53:37 CDT

Original text of this message

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