Created
December 11, 2015 15:57
-
-
Save makaroni4/991e2ce992cb8ccd08c3 to your computer and use it in GitHub Desktop.
Remove all non digit symbols from column in PostgreSQL
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 fb_audiences | |
set facebook_id = replace(facebook_id, '[^0-9]+$', ''); | |
SELECT id, facebook_id | |
FROM fb_audiences | |
WHERE facebook_id ~ '[^0-9]+$' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment