Re: Importing into Postgres from a csv file

Поиск
Список
Период
Сортировка
От Jerome Raupach
Тема Re: Importing into Postgres from a csv file
Дата
Msg-id 39A517E0.45B7ABA9@intelcom.fr
обсуждение исходный текст
Ответ на Re: Importing into Postgres from a csv file  (John McKown <jmckown@prodigy.net>)
Список pgsql-general
John McKown wrote:
>
> I think that you can do this using the COPY verb in psql.
>
> COPY table FROM file USING DELIMITERS ',';
>
> Just be sure that the order of the data in the file is the same as the
> order of the variables in the table.
>
> John
>
> On Wed, 23 Aug 2000, Jake wrote:
> > Does any one know if this is possible, and if so how?
> >
> >
> > Jake
> >
> >

COPY table FROM '/usr/file' USING DELIMITERS ',';

with the complete path.
Jerome.

В списке pgsql-general по дате отправления:

Предыдущее
От: John McKown
Дата:
Сообщение: Re: FW: Count & Distinct
Следующее
От: "jeff seaman"
Дата:
Сообщение: Postgresql on Solaris 8