Skip to content

Instantly share code, notes, and snippets.

@mattneary
Last active December 29, 2015 08:09
Show Gist options
  • Save mattneary/7641368 to your computer and use it in GitHub Desktop.
Save mattneary/7641368 to your computer and use it in GitHub Desktop.
UPDATE queries
'x LIKE "%'+'a b c'.gsub(/\s/, '%" AND x LIKE "%')+'%"'
UPDATE <table> SET type = case when type = <old> then <new> else type end;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment