At Bernie's request I'm trying to condense this to a simpler example:
I have a CSV file, which contains a month where the days of the week are the column headers:
Monday,Tuesday,Wednesday,Thursday,Friday,Saturday,Sunday
1,2,3,4,5,6,7
8,9,10,11,12,13,14
15,16,17,18,19,20,21
22,23,24,25,26,27,28
In the command line, I've created an SQLite table, days:
sqlite> CREATE TABLE days(
...> Monday int,
...> Tuesday int,
...> Wednesday int,
...> Thursday int,
...> Friday int,
...> Saturday int,
...> Sunday int
...> );
When attempting to import the data from the csv, here's what I get:
sqlite> .import example.csv days
Error: example.csv line 1: expected 7 columns of data but found 1
How can I import this csv file to the database such that it recognizes every new row? Thanks!