Re: [SQL] Importing data from csv

2006-08-27 Thread Aaron Bono
On 8/24/06, Sumeet <[EMAIL PROTECTED]> wrote: Hi Folks,sorry if this is a duplicate post, i've been tryin to find a solution of importing data into postgres from a csv file. The problem is, I have a database which consists of columns which contain newline characters (mac and unix). now when i expor

Re: [SQL] Importing data from csv

2006-08-24 Thread Michael Fuhr
On Thu, Aug 24, 2006 at 08:19:58PM -0400, Scot P. Floess wrote: > Well, being that there isn't a RFC for CSV...other than "defacto" > definitions...I am pretty sure that is widely agreed upon ;) RFC 4180 Common Format and MIME Type for Comma-Separated Values (CSV) Files ftp://ftp.rfc-editor.org/i

Re: [SQL] Importing data from csv

2006-08-24 Thread Scot P. Floess
better light! J   Cheers, -p   -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Scot P. Floess Sent: Friday, 25 August 2006 10:00 To: [EMAIL PROTECTED] Cc: Phillip Smith; pgsql-sql@postgresql.org Subject: Re: [SQL] Importing data from csv

Re: [SQL] Importing data from csv

2006-08-24 Thread Phillip Smith
: [EMAIL PROTECTED] Cc: Phillip Smith; pgsql-sql@postgresql.org Subject: Re: [SQL] Importing data from csv   And if its contained with quotes...its considered a field Scot P. Floess wrote: A newline in CSV parlance denotes the end of a recordunless that newline is contained with quotes... Phillip

Re: [SQL] Importing data from csv

2006-08-24 Thread Scot P. Floess
@postgresql.org Subject: [SQL] Importing data from csv   Hi Folks, sorry if this is a duplicate post, i've been tryin to find a solution of importing data into postgres from a csv file. The problem is, I have a database which consists of columns which contain newline characters

Re: [SQL] Importing data from csv

2006-08-24 Thread Scot P. Floess
.   Cheers, -p   -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Sumeet Sent: Friday, 25 August 2006 00:48 To: pgsql-sql@postgresql.org Subject: [SQL] Importing data from csv   Hi Folks, sorry if this is a duplicate post, i've been try

Re: [SQL] Importing data from csv

2006-08-24 Thread Phillip Smith
00:48 To: pgsql-sql@postgresql.org Subject: [SQL] Importing data from csv   Hi Folks, sorry if this is a duplicate post, i've been tryin to find a solution of importing data into postgres from a csv file. The problem is, I have a database which consists of columns which contain newline chara

[SQL] Importing data from csv

2006-08-24 Thread Sumeet
Hi Folks,sorry if this is a duplicate post, i've been tryin to find a solution of importing data into postgres from a csv file. The problem is, I have a database which consists of columns which contain newline characters (mac and unix). now when i export these files to a csv format, there are some