Re: [sqlite] Importing data into SQLite

2009-09-24 Thread Dan Bishop
T wrote: > > You can use the sqlite binary to import data from a CSV file - if you do it > that way you have to make sure that your data fields in the SQLite database > match exactly in order the data in the CSV file. That's been my experience. > The other way is to do it programmatically (Java

Re: [sqlite] Importing data into SQLite

2009-09-24 Thread TTTTT
You can use the sqlite binary to import data from a CSV file - if you do it that way you have to make sure that your data fields in the SQLite database match exactly in order the data in the CSV file. That's been my experience. The other way is to do it programmatically (Java, C++, etc). The adv

Re: [sqlite] Importing data into SQLite - text files are not really portable

2009-09-09 Thread P Kishor
- Original Message - > From: "Jean-Denis Muys" > To: "General Discussion of SQLite Database" > Sent: Wednesday, September 09, 2009 6:09 AM > Subject: Re: [sqlite] Importing data into SQLite - text files are not > really portable > > >> >

Re: [sqlite] Importing data into SQLite - text files are not really portable

2009-09-09 Thread Jim Showalter
patibility reasons. - Original Message - From: "Jean-Denis Muys" To: "General Discussion of SQLite Database" Sent: Wednesday, September 09, 2009 6:09 AM Subject: Re: [sqlite] Importing data into SQLite - text files are not really portable > > On 9/8/09 22:24 , vari

Re: [sqlite] Importing data into SQLite - text files are not really portable

2009-09-09 Thread Jean-Denis Muys
On 9/8/09 22:24 , various people wrote: > Unfortunately, the 3 main families of small computer operating systems > have 3 different definitions of what a text file is... > > DOS/Windows (PC): lines are terminated with CR+LF > Unix: lines are terminated with LF > Macintosh: lines are terminated w

Re: [sqlite] Importing data into SQLite - text files are not really portable

2009-09-08 Thread Robert Citek
t; From: sqlite-users-boun...@sqlite.org > [mailto:sqlite-users-boun...@sqlite.org] On Behalf Of Kavita Raghunathan > Sent: Tuesday, September 08, 2009 2:14 PM > To: General Discussion of SQLite Database > Subject: Re: [sqlite] Importing data into SQLite > > FYI: Mac excel does not sep

Re: [sqlite] Importing data into SQLite

2009-09-08 Thread Simon Slavin
On 8 Sep 2009, at 9:48pm, Robert Citek wrote: > Just a guess, but you may be running into issues with the end-of-line > character as they are different under linux (\n), Mac (\r), and > Windows/DOS (\r\n). > > Linux has a tool to convert Windows/DOS end-of-lines to linux-style > called dos2unix.

Re: [sqlite] Importing data into SQLite

2009-09-08 Thread Robert Citek
Just a guess, but you may be running into issues with the end-of-line character as they are different under linux (\n), Mac (\r), and Windows/DOS (\r\n). Linux has a tool to convert Windows/DOS end-of-lines to linux-style called dos2unix. There may be one for Mac, too, but I'm not sure. If not,

Re: [sqlite] Importing data into SQLite - text files are not really portable

2009-09-08 Thread Rich Shepard
On Tue, 8 Sep 2009, Ribeiro, Glauber wrote: > Unfortunately, the 3 main families of small computer operating systems > have 3 different definitions of what a text file is... > > This causes no end of trouble when moving text files between these kinds > of systems. I've never worked with a Mac

Re: [sqlite] Importing data into SQLite - text files are not really portable

2009-09-08 Thread Ribeiro, Glauber
qlite-users-boun...@sqlite.org [mailto:sqlite-users-boun...@sqlite.org] On Behalf Of Kavita Raghunathan Sent: Tuesday, September 08, 2009 2:14 PM To: General Discussion of SQLite Database Subject: Re: [sqlite] Importing data into SQLite FYI: Mac excel does not separate rows with \r, but inserts a ^M in

Re: [sqlite] Importing data into SQLite

2009-09-08 Thread Kavita Raghunathan
: "Kavita Raghunathan" To: "General Discussion of SQLite Database" Sent: Tuesday, September 8, 2009 11:47:38 AM GMT -08:00 US/Canada Pacific Subject: Re: [sqlite] Importing data into SQLite Yes, this works. Must have been my original csv file. I was using mac based excel and I&

Re: [sqlite] Importing data into SQLite

2009-09-08 Thread Kavita Raghunathan
t; Sent: Monday, September 7, 2009 9:08:41 AM GMT -08:00 US/Canada Pacific Subject: Re: [sqlite] Importing data into SQLite On Sun, Sep 6, 2009 at 9:32 PM, Kavita Raghunathan wrote: > Timothy and all, > When I try to import a .csv, I get a segmentation fault: > 1) First I set .seperator to

Re: [sqlite] Importing data into SQLite

2009-09-07 Thread Robert Citek
Sounds good. Let us know how things go. P.S. one thing to try may be to use dos2unix to convert any text files created in the Windows/DOS world to unix-format text files. Regards, - Robert On Mon, Sep 7, 2009 at 7:22 PM, Kavita Raghunathan wrote: > The difference between what you did and what I

Re: [sqlite] Importing data into SQLite

2009-09-07 Thread Simon Slavin
On 8 Sep 2009, at 1:22am, Kavita Raghunathan wrote: > I'm using the latest version downloaded last week: amalgamate 3-6-17. > > Robert, > The difference between what you did and what I did was perhaps that > I had excel make the .csv file, and maybe the excel version had > something > to do wit

Re: [sqlite] Importing data into SQLite

2009-09-07 Thread Kavita Raghunathan
SQLite Database" Sent: Monday, September 7, 2009 11:08:41 AM GMT -06:00 US/Canada Central Subject: Re: [sqlite] Importing data into SQLite On Sun, Sep 6, 2009 at 9:32 PM, Kavita Raghunathan wrote: > Timothy and all, > When I try to import a .csv, I get a segmentation fault: > 1)

Re: [sqlite] Importing data into SQLite

2009-09-07 Thread Robert Citek
On Sun, Sep 6, 2009 at 9:32 PM, Kavita Raghunathan wrote: > Timothy and all, > When I try to import a .csv, I get a segmentation fault: > 1) First I set .seperator to , > 2) Then I type .import > 3) I see "Segmentation fault" > > Any ideas ? Here's an example of how it worked for me. $ cat data

Re: [sqlite] Importing data into SQLite

2009-09-07 Thread Dan Kennedy
On Sep 7, 2009, at 9:32 AM, Kavita Raghunathan wrote: > Timothy and all, > When I try to import a .csv, I get a segmentation fault: > 1) First I set .seperator to , > 2) Then I type .import > 3) I see "Segmentation fault" Which version of SQLite is this happening with? ___

Re: [sqlite] Importing data into SQLite

2009-09-06 Thread Kavita Raghunathan
of SQLite Database" Sent: Monday, August 31, 2009 9:11:32 AM GMT -06:00 US/Canada Central Subject: Re: [sqlite] Importing data into SQLite You can use the sqlite binary to import data from a CSV file - if you do it that way you have to make sure that your data fields in the SQLite database m

Re: [sqlite] Importing data into SQLite

2009-08-31 Thread Terence Lorenzo
You can use http://www.sqliteexpert.com/ its not expensive cheers Kavita Raghunathan wrote: > > Hi, > I'm evaluating SQLite to be used as a small embedded database in a linux > environment for Skyfiber Inc. What is the best way to import data into it > ? I have a bunch of entities and attribut

Re: [sqlite] Importing data into SQLite

2009-08-31 Thread SQL Maestro Group
> I'm evaluating SQLite to be used as a small embedded database in a linux > environment for Skyfiber Inc. What is the best way to import data into it > ? I have a bunch of entities and attributes in an excel spreadsheet. Could > I import CSV ? What should be the columns (where can I read about

Re: [sqlite] Importing data into SQLite

2009-08-31 Thread Kavita Raghunathan
Pacific Subject: Re: [sqlite] Importing data into SQLite You can use the sqlite binary to import data from a CSV file - if you do it that way you have to make sure that your data fields in the SQLite database match exactly in order the data in the CSV file. That's been my experience.

Re: [sqlite] Importing data into SQLite

2009-08-31 Thread P Kishor
On Mon, Aug 31, 2009 at 10:02 AM, Kavita Raghunathan wrote: > Hi, > I'm evaluating SQLite to be used as a small embedded database in > a linux environment for Skyfiber Inc. What is the best way to import data > into it ? .import > I have a bunch of entities and attributes in an excel spreadsheet

Re: [sqlite] Importing data into SQLite

2009-08-31 Thread Timothy A. Sawyer
You can use the sqlite binary to import data from a CSV file - if you do it that way you have to make sure that your data fields in the SQLite database match exactly in order the data in the CSV file. That's been my experience. The other way is to do it programmatically (Java, C++, etc). The advant