copy - Mailing list pgsql-novice

From Clifton Zama
Subject copy
Date
Msg-id 200602011403.10801.csz@jhb.ucs.co.za
Whole thread Raw
Responses Re: copy
Re: copy
List pgsql-novice
Please help.

 Please correct :  copy tmp_table from supplier_merch.dat with delimiter '|';

ERROR:  parser: parse error at or near "table" at character 6.

COPY table [ ( column [, ...] ) ]
    FROM { 'filename' | stdin }
    [ [ WITH ]
          [ BINARY ]
          [ OIDS ]
          [ DELIMITER [ AS ] 'delimiter' ]
          [ NULL [ AS ] 'null string' ] ]
COPY table [ ( column [, ...] ) ]
    TO { 'filename' | stdout }
    [ [ WITH ]
          [ BINARY ]
          [ OIDS ]
          [ DELIMITER [ AS ] 'delimiter' ]
          [ NULL [ AS ] 'null string' ] ]

.  

I assume table stands for table name, and all the stuff in [] is optional.

I tried working this out at home, which is when I first learnt of it and
couldn't get it to work. I had to use some psql command equivalent which I
cannot remember correctly anymore, and cannot find in
"/usr/local/pgsql/bin/".

I don't know if it only exist in 8.0.

pgsql-novice by date:

Previous
From: Sean Davis
Date:
Subject: Re: put text list into table form
Next
From:
Date:
Subject: How to define variables in psql?