mysql - phpMyAdmin search and replace multiple fields condition -


i want sure before press button...

i want search , replace. row has column meta_key , column meta_value. condition meta_key has product_page , want replace in meta_value oldtext- newtext-.

when want search , replace in 1 column can do

update `wp_postmeta` set `meta_value` = replace ( `meta_value`, 'oldtext-', 'newtext-'); 

but put condition check in meta_key column?

in where clause:

update `wp_postmeta`     set `meta_value` = replace(`meta_value`, 'oldtext-', 'newtext-')     meta_key = 'product_page'; 

Comments

Popular posts from this blog

google chrome - Developer tools - How to inspect the elements which are added momentarily (by JQuery)? -

angularjs - Showing an empty as first option in select tag -

php - Cloud9 cloud IDE and CakePHP -