On a Windows platform, I have the following:
schema.sql (contains sql scripts)
sqlite3.exe (command shell for sqlite â download from sqlite.org)
build.bat: batch file with the line: sqlite3.exe -init schema.sql default.db3
When I run build.bat, the database is created as expected, however the sqlite shell does not end automatically. So, how can I run a batch file and automatically end sqlite command line shell?
eg. output
C: \ Work \ X \ Database> sqlite3.exe -init schema.sql default.db3
- Loading resources from schema.sql
SQLite Version 3.7.4
Enter ".help" for instructions
Enter SQL queries terminated by a ";"
sqlite>
source share