I have a need to create a database if it doesn't already exist. The obvious solution is to just use:

sqlite3 newdatabase.db

Except that it not only creates the db but also opens that db for commands. I am running this from a script so I want to just want to run the command from a script so that I know the database exists before issuing other commands.

I searched around the Internet for what I thought would be an easy answer and didn't find one. I am running SQLite 3.3.13 from BusyBox 1.1.3

Thanks

--
Pete Helgren
Value Added Software, Inc
www.asaap.com
www.opensource4i.com

_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to