Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: TRANSLATE
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
select replace(replace(replace(a,chr(44),''),chr(34),''),chr(39),'') "New String" from test
New String
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
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).
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
![]() |
![]() |