Re: [sqlite] Combining .output and .read in a batch file

2009-05-07 Thread Leo Freitag
Slightly modified it works: === batchfile REM the read-statement with quotes sqlite3 test.db ".read r1.sql" === r1.sql REM the following line without quotes .output o1.txt select * from table1; Thanks a lot. Leo Simon Davies schrieb: > 2009/5/7 Leo Freitag : > >> Hallo, >> >> I try to get ru

Re: [sqlite] Combining .output and .read in a batch file

2009-05-07 Thread Leo Freitag
Yes, that's what I wanted to do. But even with that syntax there is no output. Any other ideas? Leo Pavel Ivanov schrieb: > Maybe you want to do > sqlite3 test.db ".output o.txt; .read r.sql" > > Pavel > > On Thu, May 7, 2009 at 6:44 AM, Leo Freitag wrote: > >> Hallo, >> >> I try to get run

Re: [sqlite] Combining .output and .read in a batch file

2009-05-07 Thread Simon Davies
2009/5/7 Leo Freitag : > Hallo, > > I try to get run the following in a batch file > > Open database "test.db" > Set output to "o.txt" > Read sql-statement form "r.sql" > > === r.sql - Start === > select * from table1; > === r.sql - End === > > Thinks like the following didn't work: > sqlite3 test.

Re: [sqlite] Combining .output and .read in a batch file

2009-05-07 Thread Pavel Ivanov
Maybe you want to do sqlite3 test.db ".output o.txt; .read r.sql" Pavel On Thu, May 7, 2009 at 6:44 AM, Leo Freitag wrote: > Hallo, > > I try to get run the following in a batch file > > Open database "test.db" > Set output to "o.txt" > Read sql-statement form "r.sql" > > === r.sql - Start === >

[sqlite] Combining .output and .read in a batch file

2009-05-07 Thread Leo Freitag
Hallo, I try to get run the following in a batch file Open database "test.db" Set output to "o.txt" Read sql-statement form "r.sql" === r.sql - Start === select * from table1; === r.sql - End === Thinks like the following didn't work: sqlite3 test.db .output o.txt .read r.sql Thanks for your