Re: [sqlite] select from commandprompt with output to file

2006-11-17 Thread John Stanton
elect from commandprompt with output to file RB Smissaert wrote: How would I run these 4 commands via a .bat file or via whatever means: cd c:\test\ReadCodes c:\test\Program\sqlite3 c:\test\ReadCodes\ReadCode.db" .output testfile.txt select * from readcode where read_code glob 'G2*';

RE: [sqlite] select from commandprompt with output to file

2006-11-17 Thread RB Smissaert
t have the option to output to memory, say an array and produce the pointer to that memory, rather than a text file? RBS -Original Message- From: Dennis Cote [mailto:[EMAIL PROTECTED] Sent: 17 November 2006 15:04 To: sqlite-users@sqlite.org Subject: Re: [sqlite] select from commandprompt w

RE: [sqlite] select from commandprompt with output to file

2006-11-17 Thread RB Smissaert
Dennis, Thanks for that. Will try it later and let you know. Definitely one I couldn't have figured out myself. RBS -Original Message- From: Dennis Cote [mailto:[EMAIL PROTECTED] Sent: 17 November 2006 15:04 To: sqlite-users@sqlite.org Subject: Re: [sqlite] select from commandp

Re: [sqlite] select from commandprompt with output to file

2006-11-17 Thread Dennis Cote
RB Smissaert wrote: How would I run these 4 commands via a .bat file or via whatever means: cd c:\test\ReadCodes c:\test\Program\sqlite3 c:\test\ReadCodes\ReadCode.db" .output testfile.txt select * from readcode where read_code glob 'G2*'; It must be simple, but I can't see it. RBS, You n

RE: [sqlite] select from commandprompt with output to file

2006-11-17 Thread RB Smissaert
Message- From: Dan Kennedy [mailto:[EMAIL PROTECTED] Sent: 17 November 2006 08:09 To: sqlite-users@sqlite.org Subject: Re: [sqlite] select from commandprompt with output to file What sqlite versions, OS etc.? This worked for me: $ sqlite3 SQLite version 3.2.8 Enter ".help" for in

RE: [sqlite] select from commandprompt with output to file

2006-11-17 Thread RB Smissaert
01:15 To: sqlite-users@sqlite.org Subject: Re: [sqlite] select from commandprompt with output to file "RB Smissaert" <[EMAIL PROTECTED]> writes: > How would I run these 4 commands via a .bat file or via whatever means: > > cd c:\test\ReadCodes > c:\test\Program\sqli

Re: [sqlite] select from commandprompt with output to file

2006-11-17 Thread Dan Kennedy
What sqlite versions, OS etc.? This worked for me: $ sqlite3 SQLite version 3.2.8 Enter ".help" for instructions sqlite> create table abc(a, b, c); sqlite> .output out.txt sqlite> select * from sqlite_master; sqlite> .quit $ cat out.txt table|abc|abc|2|CREATE TABLE abc(a, b, c) > > How do I d

Re: [sqlite] select from commandprompt with output to file

2006-11-16 Thread Derrell . Lipman
"RB Smissaert" <[EMAIL PROTECTED]> writes: > How would I run these 4 commands via a .bat file or via whatever means: > > cd c:\test\ReadCodes > c:\test\Program\sqlite3 c:\test\ReadCodes\ReadCode.db" > .output testfile.txt > select * from readcode where read_code glob 'G2*'; I haven't been trackin

RE: [sqlite] select from commandprompt with output to file

2006-11-16 Thread RB Smissaert
Original Message- From: Kees Nuyt [mailto:[EMAIL PROTECTED] Sent: 16 November 2006 21:36 To: sqlite-users@sqlite.org Subject: Re: [sqlite] select from commandprompt with output to file Hi RBS, On Thu, 16 Nov 2006 19:56:36 -, you wrote: >How do I do this: >From the command pr

RE: [sqlite] select from commandprompt with output to file

2006-11-16 Thread RB Smissaert
Subject: Re: [sqlite] select from commandprompt with output to file Hi RBS, On Thu, 16 Nov 2006 19:56:36 -, you wrote: >How do I do this: >From the command prompt issue a simple select query to a specified database >and direct the output to a file. >I can see there is the .out

Re: [sqlite] select from commandprompt with output to file

2006-11-16 Thread Kees Nuyt
Hi RBS, On Thu, 16 Nov 2006 19:56:36 -, you wrote: >How do I do this: >From the command prompt issue a simple select query to a specified database >and direct the output to a file. >I can see there is the .output FILENAME option, but nothing seems to happen. >.output stdout works fine with o

[sqlite] select from commandprompt with output to file

2006-11-16 Thread RB Smissaert
How do I do this: >From the command prompt issue a simple select query to a specified database and direct the output to a file. I can see there is the .output FILENAME option, but nothing seems to happen. .output stdout works fine with output to the screen. Must be overlooking something simple her