Re: [sqlite] import a CSV-File

2009-03-07 Thread Mike Eggleston
On Fri, 06 Mar 2009, Rich Shepard might have said: > On Fri, 6 Mar 2009, Hans-Martin wrote: > > > It seems that there is no way to get rid of the embedded CR/LF without parse > > the complete output. > >Use sed. That's what it's for. > > Rich Or tr(1) if it's a single character. Mike

Re: [sqlite] import a CSV-File

2009-03-07 Thread Hans-Martin
Am Freitag, 6. März 2009 23:33:33 schrieb John Machin: > On 7/03/2009 6:16 AM, Rich Shepard wrote: > > On Fri, 6 Mar 2009, Hans-Martin wrote: > >> It seems that there is no way to get rid of the embedded CR/LF without > >> parse the complete output. > > > >Use sed. That's what it's for. > > Has

[sqlite] Import a CSV file

2009-03-07 Thread Marek Paul
I use an excellent piece of software called AutoIT (http://www.autoitscript.com). AutoIt is a very flexible easy to use programming language which supports SQLite. I used it to write a csv import program for SQLite. Took me 10 minutes. If you would like to see the source as an example just say. Ch

Re: [sqlite] import a CSV-File

2009-03-06 Thread Marek Paul
I use an excellent piece of software called AutoIT (http://www.autoitscript.com). AutoIt is a very flexible easy to use programming language which supports SQLite. I used it to write a csv import program for SQLite. Took me 10 minutes. If you would like to see the source as an example just say. Ch

Re: [sqlite] import a CSV-File

2009-03-06 Thread Sylvain Pointeau
from my experience, sed will read line by line, which is not good for the CSV file.(one field can be on multiple lines). why sqlite is not enhanced to handle fully the csv file format? Cheers, Sylvain On Fri, Mar 6, 2009 at 11:33 PM, John Machin wrote: > On 7/03/2009 6:16 AM, Rich Shepard wro

Re: [sqlite] import a CSV-File

2009-03-06 Thread John Machin
On 7/03/2009 6:16 AM, Rich Shepard wrote: > On Fri, 6 Mar 2009, Hans-Martin wrote: > >> It seems that there is no way to get rid of the embedded CR/LF without parse >> the complete output. > >Use sed. That's what it's for. Has anyone considered that getting rid of the embedded CR/LF is dest

Re: [sqlite] import a CSV-File

2009-03-06 Thread Rich Shepard
On Fri, 6 Mar 2009, Hans-Martin wrote: > It seems that there is no way to get rid of the embedded CR/LF without parse > the complete output. Use sed. That's what it's for. Rich -- Richard B. Shepard, Ph.D. | IntegrityCredibility Applied Ecosystem Services, Inc.

Re: [sqlite] import a CSV-File

2009-03-06 Thread Hans-Martin
Am Freitag, 6. März 2009 18:29:58 schrieb Griggs, Donald: ... > Hi Hans, Hi Donald! > > The sqlite command-line utility program does not have code in it to > handle quoted strings containing the field separator (comma, in your > case), nor does it expect the multi-line data. > > If you can have

Re: [sqlite] import a CSV-File

2009-03-06 Thread Dave Toll
al Message- From: Hans-Martin Bundeshund [mailto:bundesh...@yahoo.de] Sent: 06 March 2009 03:23 To: sqlite-users@sqlite.org Subject: [sqlite] import a CSV-File Hello to the List! I started using SQLite (3.6.11) under WindowsXP and get confused using the import-function. The import runs well

Re: [sqlite] import a CSV-File

2009-03-06 Thread Griggs, Donald
-Original Message- From: sqlite-users-boun...@sqlite.org [mailto:sqlite-users-boun...@sqlite.org] On Behalf Of Hans-Martin Bundeshund Sent: Friday, March 06, 2009 6:23 AM To: sqlite-users@sqlite.org Subject: [sqlite] import a CSV-File Hello to the List! I started using SQLite (3.6.11

[sqlite] import a CSV-File

2009-03-06 Thread Hans-Martin Bundeshund
Hello to the List! I started using SQLite (3.6.11) under WindowsXP and get confused using the import-function. The import runs well with most lines, but i get an error when it comes to following cases: Case 1, the ',' between a string: "Text of field1","Text of field2, not for field1" after