I have a MySQL table which has \r\n and \r in the values of some of the fields. The datatype of the column is text. How can I get rid of these returns and new lines from the values?
To clarify, I would like to go from this:
\r\n \r\n This is an example of example text. \r\nThis is an example of more example text. \r\n
To this:
This is an example of example text. This is an example of more example text.
This data was originally pulled from an HTML file. When I attempt to run the following command, it does not work.
UPDATE tablename SET columnname = REPLACE(columnname, '\r\n', '');