Pete Helgren <[email protected]> wrote: > 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.
Try something like echo ".exit" | sqlite3 newdatabase.db -- Igor Tandetnik _______________________________________________ sqlite-users mailing list [email protected] http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

