Created
June 18, 2014 12:03
-
-
Save springcoil/270b41f49038c8383244 to your computer and use it in GitHub Desktop.
CSVKit and 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
csvsql --db postgresql:///test1 --insert Problem_Set_Operations_Research.csv | |
# I was having some trouble getting a csv file inserted into a Postgres Database. The above line worked. | |
\dt | |
#Shows the tables in a particular database | |
\connect test1 | |
#Connects to a database with a particular name in the case above "test1" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment