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!

how to remove new line character in PL/SQL

Joshua_R_WeirAug 30 2006 — edited Sep 1 2006
Hi,

I have an issue where I wish to trim space on a field and also remove new line character if any fields have new line character.

I understand to use TRIM('field ') to trim it. However if I want to check if there is a newline character and remove it how do i do that?

For instance say the column 'BLAH' on table 'TABLE1' is as such:

--new line character after text 'Blah'...
'Blah
'

How do I make this column so it is just value 'Blah'?

I thought to use:

regexp_instr but cannot work this out.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 29 2006
Added on Aug 30 2006
5 comments
4,112 views