Last active
August 29, 2015 14:04
-
-
Save bjdixon/42b4f32a5e1c6d65201b to your computer and use it in GitHub Desktop.
Replace one string with another for all rows in a field
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 DBNAME.TableName | |
SET DBNAME.TableName = REPLACE(DBNAME.TableName.FieldName,'OldString','NewString') | |
WHERE DBNAME.TableName.FieldName like '%OldString%'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment