I want to remove trailing line breaks from my MySQL column. trim() only removes whitespaces but I also want to remove trailing linebreaks. Could anyone suggest?
Based on EternalHour's answer:
UPDATE TABLE_NAME SET `COLUMN_NAME` = TRIM(TRIM(TRAILING '\r' FROM TRIM(TRAILING '\n' FROM TRIM(`COLUMN_NAME`))))
this one removes trailing \r\n
one by one, so either it is a newline or a carriage return or both, it will be stripped, and also removes whitespaces before and after the process.