Update database fields with search replace word


/ Published in: MySQL
Save to your folder(s)

Used to update a database field using search replace.


Copy this code and paste it in your HTML
  1. UPDATE `table` SET fieldname = replace( fieldname, "fromthis", "tothis" )

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.