Created
May 24, 2018 12:54
-
-
Save wingkwong/a8ece2db9d255718deb9b366457f60ba to your computer and use it in GitHub Desktop.
Import a CSV file to SQLite3
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
sqlite3 db.sqlite3 | |
sqlite> .mode csv | |
sqlite> .separator "," | |
sqlite> .import table1.csv table1 | |
sqlite> .import table2.csv table2 | |
sqlite> .import table3.csv table3 | |
sqlite> .import table4.csv table4 | |
sqlite> .exit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment