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: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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: [EMAIL PROTECTED]

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: [EMAIL PROTECTED] (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).

Reply via email to