Created
April 29, 2012 18:44
-
-
Save house9/2552587 to your computer and use it in GitHub Desktop.
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
-- changes [email protected] -> [email protected] | |
update users set email = replace(replace(regexp_matches(email, '.*@')::varchar, '{', ''), '}', '') || 'qa.com'; | |
-- there must be a better way to get rid of the {} chars returned by regexp_matches |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment