danbrewer's posterous

« Back to posts
  • Viewed
    times
February 17, 2010

How to Find & Replace Data in MySQL

  • Edit
  • Delete
  • Tags
  • Autopost

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]');
via mediacollege.com

  • 0 responses
  • Like
  • Comment