Re: Importing data... (fwd)

Поиск
Список
Период
Сортировка
От harrold@sage.che.pitt.edu
Тема Re: Importing data... (fwd)
Дата
Msg-id Pine.LNX.4.21.0105241419010.9208-100000@sage.che.pitt.edu
обсуждение исходный текст
Ответ на Re: Importing data... (fwd)  (Chadwick Rolfs <c2304182@webdevel.urban.csuohio.edu>)
Список 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 по дате отправления:

Предыдущее
От: Chadwick Rolfs
Дата:
Сообщение: Re: Importing data... (fwd)
Следующее
От: "Seema Noor"
Дата:
Сообщение: time difference