search
top

How to find and replace a string in MySQL

UPDATE `table_name` SET `column_name` = REPLACE(`column_name`, 'original_string', 'replace_string')
VN:F [1.9.17_1161]
Rating: +1 (from 1 vote)

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">

top