Is it possible to create an empty sqlite3
database from the command line (e.g. sqlite3 <someoption> dbname
) which would create a database file for me empty of any tables so that I can access it from a different SQL editor?
Currently, when I do sqlite3 dbname
, I get a sqlite prompt from which I can do CREATE TABLE ...
but if I don't, when I exit, no file is created. So I am looking for a single command which would create an empty database for me without a need to create at least one table within that step.
sqlite3 a.db ""
creates empty file – Inveigh