I am trying to a build an SQLite database from an existing CSV file following the steps from this answer. However I already get an error in the second step where the database should be created from the defined table with
sqlite3 worldcities.db < worldcities.sql
The error message reads
Error: near line 1: near ")": syntax error
My worldcities.sql file looks like this:
CREATE TABLE worldcities(
city TEXT NOT NULL,
city_ascii TEXT NOT NULL,
lat REAL NOT NULL,
lng REAL NOT NULL,
country TEXT NOT NULL,
iso2 TEXT NOT NULL,
iso3 TEXT NOT NULL,
admin_name TEXT NOT NULL,
capital TEXT NOT NULL,
population INT NOT NULL,
id INT NOT NULL,
);
What did I do wrong here?