From my experiments, it does not appear to do so. If this is indeed true, what is the best method for removing line breaks? I\'m currently experimenting with the parameters
The answers above, when combined, work. A full example of replacing linebreaks at the beginning and end of the field looks like this:
UPDATE table SET field=REPLACE(field, field, TRIM(BOTH '\r\n' FROM field))
My line breaks were in the middle of the string, and I didn't have control over the source data. The following mysql command worked for me:
REPLACE(FIELD,'\r\n',' ')
REPLACE(FIELD,'\r\n',' ')
works perfectly on MySql 5.1 database
select trim(both '\r\n' from FIELDNAME) from TABLE;
should work if select trim(both '\n' from FIELDNAME) from TABLE;
doesn't work.