Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

RTRIM using CHR(10)

Joshua_R_WeirSep 17 2006 — edited Sep 18 2006
Hi,

I have a datafix where I wish to update all rows for a particular column which have new line character (CHR(10)) within to remove the new line character. I cannot do this with RTRIM, the following returns the string not trimmed:

select RTRIM('12345'||CHR(10)||'next', CHR(10)) from dual;

Why does the above not work? How would I implement the above by specifying string: '12345'||CHR(10)||'next' and removing the new line character and remaining data on new line?

Thanks for your help.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 16 2006
Added on Sep 17 2006
4 comments
905 views