-
Start up the sqlite3 commandline on a new datafile:
sqlite3 myFooData.db -
You should see a prompt something like this:
SQLite version 3.7.11 2012-03-20 11:35:50
Enter ".help" for instructions
Enter SQL statements terminated with a ";"
sqlite>
- Create a table to accomodate your data. Column definitions follow the form 'name datatype' and the columns of a database are defined as a set enclosed in ():
sqlite> create table myFooData (frequency integer, mi integer, phrase text);
sqlite> .separator ","
sqlite> .import myFooData.csv myFooData
- If all went well, your data is loaded, to see how many rows you have:
sqlite> select count(*) from myFooData;
- To see all your data:
sqlite> select * from myFooData;
-
To exit sqlite simply type Ctrl-d. You should now see a datafile named myFooData.db in your current directory. To load it again, just start sqlite3 with it as an argument as in the first step.
-
Next Steps: