Link to home
Start Free TrialLog in
Avatar of mrong
mrong

asked on

How to remove the line breakers in Oracle

Greeting,

I found the following function but it only removes the 1st line break.

REPLACE(col_Name, CHR(10), ' ')

Please suggest.

Thanks.
Avatar of slightwv (䄆 Netminder)
slightwv (䄆 Netminder)

>>but it only removes the 1st line break.

It will remove all the Line Feed characters.

What you likely have as a Carriage Return with a Line Feed.

Try this:
REPLACE(col_Name, CHR(13)||CHR(10), ' ')
Say more or provide an example of your input and desired output.
ASKER CERTIFIED SOLUTION
Avatar of awking00
awking00
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial