Welcome To Snipplr


Everyone's Recent MySQL Snippets Tagged update



« Prev 1 Next »
How to remap a value to another inside a mysql query select.
0 114 posted 7 years ago by ginoplusio
Used to update a database field using search replace.
0 98 posted 8 years ago by carouselcreative
0 90 posted 8 years ago by mantosz
SQL query to update *wp_options* records that are specific to the host of a WordPress site. Run this query after copying the DB to another server (if this URL is different). Useful for deploying WordPress from a dev server to a live environment.
1 72 posted 9 years ago by errkk
as a note to self... in order to find it laters... This will only alter the value of fieldname if the conditions in the WHERE clause are met. With replace we only replace a certain string within fieldname with the replace_with string
1 72 posted 10 years ago by iroybot
« Prev 1 Next »