Last active
November 25, 2019 10:14
-
-
Save nakov/029affa8afefb2b87e4a08425fbb879d to your computer and use it in GitHub Desktop.
MySQL Find / Replace in the Database via SQL commands
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
SELECT REPLACE(post_title, " ", " ") FROM wp_posts |
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 wp_posts | |
SET post_title = REPLACE(post_title, " ", " ") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment