Skip to content

Instantly share code, notes, and snippets.

@alancoleman
Created July 1, 2015 07:59
Show Gist options
  • Save alancoleman/225df15d22f921fa8d16 to your computer and use it in GitHub Desktop.
Save alancoleman/225df15d22f921fa8d16 to your computer and use it in GitHub Desktop.
Replace characters in a column using update
UPDATE [table] SET url = REPLACE (url, 'a', 'b') WHERE [column] LIKE '%alan%';
-- Produces 'blbn'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment