I need to search a specific column for every occurrence of a string and replace it with a different string. The column is a MySQL TEXT column.
+3
A:
http://www.mydigitallife.info/2007/04/23/how-to-find-and-replace-text-in-mysql-database-using-sql/
update TABLE_NAME set FIELD_NAME = replace(FIELD_NAME, ‘find this string’, ‘replace found string with this string’);
David Stratton
2009-12-02 14:13:01
A:
The query David Stratton gave would be my answer too. If few of the table's rows contain the search term, you could add a WHERE clause to speed things along.
fsb
2009-12-02 16:39:12