How to remove new line characters and Tab's in your SQL output
select comment from emp
Result (Comment column value is )
John M.
This was a
Fine piece of
work.
select REPLACE(REPLACE(REPLACE(comment, CHR(10)), CHR(13)), CHR(9)) comment from emp
Result (Comment column value is )
John M.This was a Fine piece of work.
18 comments:
This is very useful command.It help me out.Thanks
Hi
That is great for replacing. How would I search a column to find all the new line characters (made from a windows PC) first before replacing them?
Thanks
Its really works
.
.
Tnx dude
Wonderful post :) it helped me fruitfully :) Tons of thanks
Hi ...
I must say
Sairamgoud .This was a Fine piece of work.
:-)
Cheers
Naseer
Fantastic !
Thank you so much... it's really saved me a lot..
awesome job dude..!!!
also can use:
regexp_replace(comment, chr(9)||'|'||chr(10)||'|'||chr(13), '')
thanks! very helpful
thanks!! it fixes my problem . . . .
Cool.. it works in all my scenarios...
Thanks dude...
Whoa!! it worked so well for my script where i was trying hard to get this.
Whoa!It really worked well in my case, i was trying hard to find something like this.
Thank you... really helpful
Hi Sairam,
A ton of thanks. God Bless you..!!
Regards,
RK
Appreciate the post. Sorted me out.
It works great.
Post a Comment