Search Postgresql Archives

Re: Question about weird COPY syntax

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



While asking questions about the grammar of COPY why do we have a
bracket of `[ [ WITH ] ...` rather than `[ WITH ]` ...

COPY tablename [ ( column [, ...] ) ]
        FROM { 'filename' | STDIN }
        [ [ WITH ]   (why is this opening bracket that is never closed here.)
                        [ BINARY ]
                        [ OIDS ]
                        [ DELIMITER [ AS ] 'delimiter' ]
                        [ NULL [ AS ] 'null string' ]
                        [ -PERL_key = value ]
                        [ -PERL_key ]
                        [ CSV [ HEADER ]
                                [ QUOTE [ AS ] 'quote' ]
                                [ ESCAPE [ AS ] 'escape' ]
                                [ FORCE NOT NULL column [, ...] ]
                                [ -TCSV_key ]
                                [ -TCSV_key = value ]

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

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux