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: Jalil Zabourdine <jalilza_at_yahoo.com>
Date: Wed, 31 Jul 2002 06:38:41 -0800
Message-ID: <F001.004A749D.20020731063841@fatcity.com>

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

Do You Yahoo!?
Yahoo! Health - Feel better, live better
--

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

Author: Jalil Zabourdine
  INET: jalilza_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). Received on Wed Jul 31 2002 - 09:38:41 CDT

Original text of this message

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