Last active
January 12, 2017 21:23
-
-
Save tonydjukic/0f19f53e3b83025150e8eedbc0bb6327 to your computer and use it in GitHub Desktop.
Search for queries in WP tables and concatenate a string onto them in one fell swoop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UPDATE `xxx_postmeta` SET `meta_value` = CONCAT(meta_value,'string-to-add') WHERE `xxx_postmeta`.`meta_key` = 'meta-key-value' AND `meta_value` LIKE '%xxx%'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Obviously, adjust as needed.