201704.28
Désactivé
0

MySQL search and replace some text in a field

UPDATE table_name SET field = REPLACE(field, 'foo', 'bar') WHERE INSTR(field, 'foo') > 0;