Skip to content

Instantly share code, notes, and snippets.

@nygeog
Created September 23, 2016 01:35
Show Gist options
  • Save nygeog/400a3f32e037f0cda97347572a5aebe7 to your computer and use it in GitHub Desktop.
Save nygeog/400a3f32e037f0cda97347572a5aebe7 to your computer and use it in GitHub Desktop.
Add a column in CartoDB for creating thousands separator's in SQL
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