For each backslash \in a text field, use 2 backslashes in SQL. For example, if your table looks like this:
mysql> select * from foo;
+----+---------------------------------------------------------------------------+
| id | bar |
+----+---------------------------------------------------------------------------+
| 1 | Walgreens (www.walgreens.com) is the nation\\\ largest drugstore chain. |
+----+---------------------------------------------------------------------------+
1 row in set (0.00 sec)
then
mysql> update foo set bar = REPLACE(bar,'\\\\\\','') where id = 1;
Query OK, 1 row affected (0.00 sec)
Rows matched: 1 Changed: 1 Warnings: 0
mysql> select * from foo;
+----+------------------------------------------------------------------------+
| id | bar |
+----+------------------------------------------------------------------------+
| 1 | Walgreens (www.walgreens.com) is the nation largest drugstore chain. |
+----+------------------------------------------------------------------------+
1 row in set (0.00 sec)
source
share