Created
September 23, 2016 01:35
-
-
Save nygeog/400a3f32e037f0cda97347572a5aebe7 to your computer and use it in GitHub Desktop.
Add a column in CartoDB for creating thousands separator's in SQL
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
ALTER TABLE tablename ADD COLUMN new_col TEXT | |
UPDATE tablename SET new_col = to_char(old_col, '9,999,999') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment