Re: Problems with copy - Mailing list pgsql-novice

From Duncan Adams (DNS)
Subject Re: Problems with copy
Date
Msg-id 034A824BAA3FBA4CA0CBEF1031A02F35014C3D46@zablv02001.vodacom.corp
Whole thread Raw
In response to Problems with copy  (Fred Soustra <fredboard@sus.mcgill.ca>)
Responses User check
List pgsql-novice
I guess u could create a temp table, copy the info to that and then use sql to extract the information that u what.

-----Original Message-----
From: Fred Soustra [mailto:fredboard@sus.mcgill.ca]
Sent: Friday, March 14, 2003 10:41 AM
To: pgsql-novice@postgresql.org
Subject: [NOVICE] Problems with copy


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: permission denied
Next
From: Ben Clewett
Date:
Subject: User check