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
Post a Comment