Re: importing csv files into v7.2.1 on Solaris 8 x86

Поиск
Список
Период
Сортировка
От Neil Conway
Тема Re: importing csv files into v7.2.1 on Solaris 8 x86
Дата
Msg-id 20020425112916.64c377f8.nconway@klamath.dyndns.org
обсуждение исходный текст
Ответ на importing csv files into v7.2.1 on Solaris 8 x86  (Russell Aspinwall <russell.aspinwall@flomerics.co.uk>)
Список pgsql-general
On Thu, 25 Apr 2002 09:13:10 +0100
"Russell Aspinwall" <russell.aspinwall@flomerics.co.uk> wrote:
> Is their a utility which will read a database table definition and
> automatically import a csv format file expecting the fields to be in the
> correct order as the table?

Yes -- take a look at COPY, and/or the psql \copy command. The syntax
is something like:

    COPY target_table FROM '/your/csv/file' USING DELIMITERS ',';

Cheers,

Neil

--
Neil Conway <neilconway@rogers.com>
PGP Key ID: DB3C29FC

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

Предыдущее
От: David Link
Дата:
Сообщение: Re: Why is outer Join way quicker?
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: disk format changes