/ Published in: SQL
A life-saver in an emergency, to do a search & replace directly on the database. Probably also a cause of aforementioned emergency for many people, so do have a backup ready for when it goes wrong.
Expand |
Embed | Plain Text
UPDATE my_table SET my_field = REPLACE(my_field, 'test12345', 'test54321') WHERE my_field LIKE '%test12345%';
You need to login to post a comment.
