Created
January 29, 2015 13:29
-
-
Save hans2103/ca174fd9a287db5bb8f5 to your computer and use it in GitHub Desktop.
SQL Tips & Tricks
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 * | |
FROM asdfg_posts | |
WHERE post_content LIKE '%href="wiki%'; | |
SELECT * | |
FROM asdfg_posts | |
WHERE post_content LIKE '%href="/wiki%'; | |
UPDATE asdfg_posts | |
SET post_content = replace(post_content, 'href="wiki', 'href="/wiki') | |
WHERE post_content LIKE '%href="wiki%'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment