Skip to content

Instantly share code, notes, and snippets.

@ethagnawl
Last active April 26, 2017 17:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ethagnawl/4f049a207b78c9b02fbe6748ea7af9df to your computer and use it in GitHub Desktop.
Save ethagnawl/4f049a207b78c9b02fbe6748ea7af9df to your computer and use it in GitHub Desktop.
postgres query by regex
-- http://www.petefreitag.com/cheatsheets/postgresql/
SELECT column FROM table WHERE column ~ 'foo.*';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment