Avatar of Steve A
Steve A
Flag for United States of America asked on

Remove double-quotes and carriage-return, line-feeds out of column data

Write an update statement to remove double-quotes and carriage-return, line-feeds out of a columns data.

--I thought this would work to remove the carriage-returns, line feeds but get a
--ora-01722:invalid number error where the datatype for column1 is varchar2(50).
Update mytable
set column1 = replace(column1, chr(13) + chr(10), '')

--tried for removing the double-quotes and did not remove them.
Update mytable
set column1 = replace(column1, '"', '')

Using Oracle 11g

Thanks
Oracle Database

Avatar of undefined
Last Comment
slightwv (䄆 Netminder)

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
slightwv (䄆 Netminder)

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Steve A

ASKER
Thanks for the information
when I did the select dump statement it returns a 'Typ-1 Len=8: 48,48,48,48,50,54,53,10' value on the column
so it might be a smart quote or something else maybe..
Steve A

ASKER
Thanks for the info
slightwv (䄆 Netminder)

>>value on the column

That column only contained numbers and a linefeed.

I get:  0000265

My go to reference:
http://www.asciitable.com/
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck