How to Find & Replace Data in MySQL

How to Find & Replace Data in MySQL

To find a string in a certain field and replace it with another string:

update [table_name] set [field_name] = replace([field_name],'[string_to_find]','[string_to_replace]');

Posted via web from danbrewer's posterous

Comments

Popular posts from this blog

Nationwide statement to QIF Format

RT @CancerInNorwich: We're at The Forum until 4pm! Come and learn about how we can test for prostate cancer, play our puzzle game and make tissue slides! #CancerInNorwich https://t.co/zEapurramu