Re: Importing data... (fwd) - Mailing list pgsql-novice

From harrold@sage.che.pitt.edu
Subject Re: Importing data... (fwd)
Date
Msg-id Pine.LNX.4.21.0105241419010.9208-100000@sage.che.pitt.edu
Whole thread Raw
In response to Re: Importing data... (fwd)  (Chadwick Rolfs <c2304182@webdevel.urban.csuohio.edu>)
List pgsql-novice
On Thu, 24 May 2001, Chadwick Rolfs wrote:

> Right, so I just create the empty tables, or put in the primary keys, then
> I can use copy?
> --  OR is there a way to get postgresql to make the tables
> for me according to the CSV file???
> That's what I'm really after.
>
> Chadwick Rolfs
>

i think the copy command acts just like the insert command when it comes
to keys. so you create the table with the attrubutes found in the
cvs. then you use the copy command to insert the data. i think the
corresponding column in the text file will be copied into the key field,
and not generated automatically. although i'm not too sure on the last
part.

you could create a 3 column table with some sample data and try it out.

--
john
Give a man a fish, he owes you one fish.
Teach a man to fish, you give up your monopoly on fisheries.


pgsql-novice by date:

Previous
From: Chadwick Rolfs
Date:
Subject: Re: Importing data... (fwd)
Next
From: "Seema Noor"
Date:
Subject: time difference