Created
July 18, 2012 22:44
-
-
Save clintonhalpin/3139462 to your computer and use it in GitHub Desktop.
Search and Replace DB
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 sample_table_name set data = replace(data, ‘jpg ’, ‘jpg’) | |
-- | |
update {table_name} set {column} = replace({column}, ‘{text to replace}’, ‘{replace with}’) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment