update test_01 set col_01 = translate
(col_01,'0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz,"''',
'0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz') ;
=================================================================
SQL>create table test_01 (col_01 varchar2(20));
Table created.
SQL>insert into test_01 values ('TOTO'',ttii"');
1 row created.
SQL>select * from test_01 ;
COL_01
--------------------
TOTO',ttii"
1 row selected.
SQL>commit ;
Commit complete.
SQL>update test_01 set col_01 = translate
2 (col_01,'0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz,"''',
3 '0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz') ;
1 row updated.
SQL>select * from test_01 ;
COL_01
--------------------
TOTOttii
1 row selected.
Hope this helps
Regards,
-Jalil
Imran Ashraf <[EMAIL PROTECTED]>wrote:
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 t! ! he HELP command for other information (like subscribing).
Do You Yahoo!?
Yahoo! Health - Feel better, live better
