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