Web developer, Norwich - Clive Portman

Replace string in MySQL database

Published under MySQL

Published on Sunday 24th June 2012

Needed to update a string occurring hundreds of times within a MySQL database. This sorted it:

update ee_channel_data set field_id_1 = replace(field_id_1, 'old string', 'new string')