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

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

slightwv (䄆 Netminder) Commented:
+ isn't Oracle.

You can try:
set column1 = replace(column1, chr(13) || chr(10))

Honestly, I've always done two replaces:
set column1 = replace(replace(column1, chr(13)),chr(10))

You don't need the empty string since that is a null in Oracle and replace defaults to null.

The double quote replace looks fine to me.  Make sure the data has an actual double quote and not something like a "smart quote".

You can use the DUMP SQL function to verify the data:
select dump(column1) from myTable;

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
MachinegunnerAuthor Commented:
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..
MachinegunnerAuthor Commented:
Thanks for the info
slightwv (䄆 Netminder) Commented:
>>value on the column

That column only contained numbers and a linefeed.

I get:  0000265

My go to reference:
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Oracle Database

From novice to tech pro — start learning today.