I executed following query and for some reason its not replacing new line character in database . It says Rows matched 1 but no change . What can be wrong ?
mysql> UPDATE aboutme SET abouttext=REPLACE(abouttext,'\\n','') WHERE userid='5099a95cd944b8.22468149';
Query OK, 0 rows affected (0.00 sec)
Rows matched: 1 Changed: 0 Warnings: 0
You can match a newline character using
\n, not\\n.Code: