Running a Sqlite3 Script from Command Line
The parameter you give to the sqlite3 program is the database file name. To execute commands from a file, you must redirect the input to that file: $ sqlite3 mydatabase.db < SQLTableTransfer or tell it to read from that file: $ sqlite3 mydatabase.db “.read SQLTableTransfer”