Question about weird COPY syntax

Поиск
Список
Период
Сортировка
От Evan Carroll
Тема Question about weird COPY syntax
Дата
Msg-id AANLkTingzWPVPT5zPe0cbKVetuLmWopxRFu7bd7gshpd@mail.gmail.com
обсуждение исходный текст
Ответы Re: Question about weird COPY syntax  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-general
Why is it that "DELIMITER", and "NULL" options are under [WITH] but
not under [CSV]. This seems at least slightly awkward.

Command:     COPY
Description: copy data between a file and a table
Syntax:
COPY tablename [ ( column [, ...] ) ]
    FROM { 'filename' | STDIN }
    [ [ WITH ]
          [ BINARY ]
          [ OIDS ]
          [ DELIMITER [ AS ] 'delimiter' ]
          [ NULL [ AS ] 'null string' ]
          [ CSV [ HEADER ]                                        <-
Why not put them under this.
                [ QUOTE [ AS ] 'quote' ]
                [ ESCAPE [ AS ] 'escape' ]
                [ FORCE NOT NULL column [, ...] ]

--
Evan Carroll
System Lord of the Internets
http://www.evancarroll.com

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

Предыдущее
От: Evan Carroll
Дата:
Сообщение: Re: Question about weird COPY syntax
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Question about weird COPY syntax