On Wednesday 23 August 2006 21:45, John Salerno wrote: > Hi everyone. Can someone tell me the proper syntax for running a sql > script when starting up sqlite from the command line interface? > > Thanks, > John > > --------------------------------------------------------------------------- >-- To unsubscribe, send email to [EMAIL PROTECTED] > --------------------------------------------------------------------------- >--
cat scriptfile | sqlite3 mydb or sqlite3 -init scriptfile mydb or sqlite3 mydb < scriptfile or (for a single sql command) sqlite3 mydb 'sqlcmd' Kind regards Ulrich ----------------------------------------------------------------------------- To unsubscribe, send email to [EMAIL PROTECTED] -----------------------------------------------------------------------------