Created
April 16, 2015 11:16
-
-
Save rastermanden/3d8d95eaa4f2001ee69f to your computer and use it in GitHub Desktop.
statistikbanken til postgresql
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
DROP TABLE IF EXISTS stat.folketal; | |
CREATE TABLE stat.folketal | |
( | |
komkode character varying, | |
tid character varying, | |
antal integer | |
); | |
COPY stat.folketal | |
FROM PROGRAM | |
'curl "http://api.statbank.dk/v1/data/FOLK1/CSV?valuePresentation=Code&OMRÅDE=*&TID=2015K1"' CSV HEADER DELIMITER ';'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment