Re: Strange delimiters problem

Поиск
Список
Период
Сортировка
От Andrej Ricnik-Bay
Тема Re: Strange delimiters problem
Дата
Msg-id b35603930706032055h3bb15ff4l4cf17ff3e8fea4ba@mail.gmail.com
обсуждение исходный текст
Ответ на Strange delimiters problem  (Andrej Kastrin <andrej.kastrin@siol.net>)
Список pgsql-general
On 6/3/07, Andrej Kastrin <andrej.kastrin@siol.net> wrote:

> I am experiencing difficulty in trying to copy the file structure below
> into PostgreSQL table:
>
> ||001||,||Classification||,||Economics||,||N||
> ||001||,||Classification||,||Trends||,||Y||
> etc...
>
> Although I can preprocess the input file with e.g awk, I would like to
> know is it possible to do that directly in PostgreSQL.
>
> Thanks in advance for any suggestions.
I think you might be able to.  You can have CSV with your pipes
(as QUOTE in [ CSV [ HEADER ] [ QUOTE [ AS ] 'quote' ] )

http://www.postgresql.org/docs/8.2/static/sql-copy.html


> Best, Andrej
Cheers,
Andrej

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

Предыдущее
От: "Islam Hegazy"
Дата:
Сообщение: Re: debugging C functions
Следующее
От: Tom Lane
Дата:
Сообщение: Re: debugging C functions