Re: import fixed width files into PostgreSQL

Поиск
Список
Период
Сортировка
От Doug McNaught
Тема Re: import fixed width files into PostgreSQL
Дата
Msg-id m3ader9483.fsf@varsoon.wireboard.com
обсуждение исходный текст
Ответ на import fixed width files into PostgreSQL  ("Johnson, Shaunn" <SJohnson6@bcbsm.com>)
Список pgsql-general
"Johnson, Shaunn" <SJohnson6@bcbsm.com> writes:

> Howdy:
>
> Running PostgreSQL 7.2.1 on RedHat Linux 7.2.
>
> Is it possible to import, or otherwise '\copy', files into Pg tables
> that are in a fixed width (no spaces) format?  If so, am I just
> using copy or is there a method (example) for this somewhere?

COPY requires delimiters; you'll have to massage it into delimited
form (or into INSERT statements) using a Perl script or whatever.

-Doug

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

Предыдущее
От: "Corey W. Gibbs"
Дата:
Сообщение: Re: Are we losing momentum? Answer: Heck No!
Следующее
От: "Jay O'Connor"
Дата:
Сообщение: Re: Appending to an array