Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: translate, replace...?
Yes, you are correct Igor.
It was taken from an example I had which did 3 replaces.
I did manage to substitute the 13 and 10 correctly though
select replace(replace(a,chr(13),'R'),chr(10),'') from table
John
-----Original Message-----
Sent: 17 September 2003 17:20
To: Multiple recipients of list ORACLE-L
Looks like you've got "one too many" REPLACEs.
Igor Neyman, OCP DBA
ineyman_at_perceptron.com
-----Original Message-----
Hallas, John, Tech Dev
Sent: Wednesday, September 17, 2003 11:00 AM
To: Multiple recipients of list ORACLE-L
IA,
The following code should be close to what you want
select replace(replace(replace(a,chr(13),'R'),chr(10),'')) from table
John
-----Original Message-----
Sent: 16 September 2003 16:15
To: Multiple recipients of list ORACLE-L
Hi,
I have a column with carriage returns (chr(13) ) and line feeds
(chr(10)). I
want to select this column replacing the chr(13) with 'R' and chr(10)
with '
' .
Whats the best way to do this?
Regards
IA
--
Please see the official ORACLE-L FAQ: http://www.orafaq.net
--
Author: Imran Ashraf
INET: imran9a_at_hotmail.com
Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services ---------------------------------------------------------------------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 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services ---------------------------------------------------------------------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.net
--
Author: Igor Neyman
INET: ineyman_at_perceptron.com
Fat City Network Services -- 858-538-5051 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services ---------------------------------------------------------------------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 http://www.fatcity.com San Diego, California -- Mailing list and web hosting services ---------------------------------------------------------------------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 Sep 17 2003 - 11:39:40 CDT