Re: [sqlite] Import CSV in sqlite3?

2005-08-06 Thread Jens Miltner
Am 6.8.05 um 09:06 schrieb Joe Noon: You can use a system call to execute a command like the following; sqlite3 -separator , test.db ".import test.csv sometable" That is exactly what I needed! Thanks a ton. Joe Noon My issue now is that the csv may or may not have all of the columns

Re: [sqlite] Import CSV in sqlite3?

2005-08-06 Thread Joe Noon
> > You can use a system call to execute a command like the following; > > > > sqlite3 -separator , test.db ".import test.csv sometable" > > > > That is exactly what I needed! Thanks a ton. > > Joe Noon > My issue now is that the csv may or may not have all of the columns that my table has.

Re: [sqlite] Import CSV in sqlite3?

2005-08-05 Thread Joe Noon
> You can use a system call to execute a command like the following; > > sqlite3 -separator , test.db ".import test.csv sometable" > That is exactly what I needed! Thanks a ton. Joe Noon

[sqlite] Import CSV in sqlite3?

2005-08-05 Thread scunacc
Dear all, > You can use a system call to execute a command like the following; > > sqlite3 -separator , test.db ".import test.csv sometable" I do something very similar to this from a Perl application for speed. It's about twice as fast as doing this from DBI. (Benchmarked on very large files).

Re: [sqlite] Import CSV in sqlite3?

2005-08-05 Thread Dennis Cote
Joe Noon wrote: Id like to import a csv, comma delimited file, into a table (sqlite3 db) in my Ruby application. I can do it either of three ways: 1.) With a SQL statement like the COPY command. Ive read this was taken out, but then found a place that said it has been reimplemented? Ive had

Re: [sqlite] Import CSV in sqlite3?

2005-08-05 Thread Jay Sprenkle
Can you write C? Steal the code from the sqlite command line tool source. :) On 8/5/05, Joe Noon <[EMAIL PROTECTED]> wrote: > Id like to import a csv, comma delimited file, into a table (sqlite3 > db) in my Ruby application. I can do it either of three ways: >

[sqlite] Import CSV in sqlite3?

2005-08-05 Thread Joe Noon
Id like to import a csv, comma delimited file, into a table (sqlite3 db) in my Ruby application. I can do it either of three ways: 1.) With a SQL statement like the COPY command. Ive read this was taken out, but then found a place that said it has been reimplemented? Ive had no luck with