Created
February 16, 2012 12:03
-
-
Save mipmip/1844372 to your computer and use it in GitHub Desktop.
SQL: search and replace
This file contains hidden or 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 egw_wiki_pages SET wiki_body = replace(`wiki_body`,"http://www.domain.nl/wiki/images/","http://xxx.domain.nl/imgwiki/") where wiki_name='XOR'; | |
UPDATE table SET column = replace(column, regex '%-%', ' ') where id = xxx; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment