mysql trim newline code example Example: mysql remove last empty newline update mytable SET title = TRIM(TRAILING '\n' FROM title)