Re: copy - fields enclosed by, ignore x lines

Поиск
Список
Период
Сортировка
От CSN
Тема Re: copy - fields enclosed by, ignore x lines
Дата
Msg-id 20041025215634.28166.qmail@web52907.mail.yahoo.com
обсуждение исходный текст
Ответ на copy - fields enclosed by, ignore x lines  (CSN <cool_screen_name90001@yahoo.com>)
Список pgsql-general
Ah, looks like "enclosed by" will be in PG 8 :). Is
"QUOTE [ AS ] 'quote'" for the "enclosed by"
character?

Ignore x lines would be nice, but not as big of a
deal.

http://developer.postgresql.org/docs/postgres/sql-copy.html



--- CSN <cool_screen_name90001@yahoo.com> wrote:

> Any chance of changing \copy and COPY to allow
> specifying what the fields are enclosed by (such as
> quotes) and to ignore the first x number of lines? I
> have data like below and don't know of an easy way
> to
> finesse it for importing (a simple regexp would
> remove
> quotes, but I just got tripped up on commas *within*
> values).
>
> "field1","field2","field3"
> "val1","val2","val3"
>
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Mail Address AutoComplete - You start. We
> finish.
> http://promotions.yahoo.com/new_mail
>




_______________________________
Do you Yahoo!?
Express yourself with Y! Messenger! Free. Download now.
http://messenger.yahoo.com

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

Предыдущее
От: "David Parker"
Дата:
Сообщение: process hang during drop schema
Следующее
От: Oliver Elphick
Дата:
Сообщение: Re: ON DELETE trigger blocks delete from my table