I am trying to import nodes.csv file into sqlite3 table - link to file
this is my code-
CREATE TABLE nodes (
    id INTEGER PRIMARY KEY NOT NULL,
    lat REAL,
    lon REAL,
    user TEXT,
    uid INTEGER,
    version INTEGER,
    changeset INTEGER,
    timestamp TEXT
);
.import nodes.csv nodes
I managed to import this file without the primary key designation, but once I add primary key to the id field it gives me the following error
nodes.csv:xxx: INSERT failed: datatype mismatch
for every line in the file where xxx is the line number. I am very new to sqlite3 and will appreciate your insights on the matter.
 
     
    