Re: Problems with copy - Mailing list pgsql-novice

From Patrick Hatcher
Subject Re: Problems with copy
Date
Msg-id OF956C0D3F.D9A2893D-ON88256CEE.0062BC32-88256CEE.006353E4@fds.com
Whole thread Raw
In response to Problems with copy  (Fred Soustra <fredboard@sus.mcgill.ca>)
List pgsql-novice
I think this is correct:

copy client(field1,field2,fieldn) from
'/path/client.del' using
delimiters ',';

HTH
Patrick Hatcher






     
                    Fred Soustra
     
                    <fredboard@sus.mcgill.c       To:     pgsql-novice@postgresql.org
     
                    a>                            cc:
     
                    Sent by:                      Subject:     [NOVICE] Problems with copy
     
                    pgsql-novice-owner@post
     
                    gresql.org
     

     

     
                    03/14/2003 12:40 AM
     

     




Hi, I am trying to import data from a cvs, file using copy the only problem
i
have is that the first field of my table is automatically generated.
So I wanted to know if there is a way to select which columns copy should
use.
the command i am running is the following

copy client from
'/path/client.del' using
delimiters ',';

Can i get it to do something like
import from file foo insert into (col2,col3 ...) ?

Thanx

Fred

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly




pgsql-novice by date:

Previous
From: Tom Lane
Date:
Subject: Re: pg_dump ,pg_restore problem
Next
From: douggorley@shaw.ca
Date:
Subject: Re: Regardin storing images