using copy to insert data.

From: "Jennifer Lee" <jlee(at)scri(dot)sari(dot)ac(dot)uk>
To: pgsql-novice(at)postgresql(dot)org
Subject: using copy to insert data.
Date: 2003-02-06 16:40:14
Message-ID: 75D535F36@law.scri.sari.ac.uk
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

I'm trying to insert data from a delimited file using the copy command
(COPY table FROM 'filepath') this works fine, but I would like to insert
data into specific columns. I've read that this is possible but haven't
been able to find documentation on how to do it. I've been able to
insert the data as I'd like in two steps. 1. copy into a temporary table, 2.
insert using select columns from the temporary table. Is there a way to
do this in one step?

Thanks much,
Jennifer

Responses

Browse pgsql-novice by date

  From Date Subject
Next Message Antti Haapala 2003-02-06 16:41:17 Re: Html output
Previous Message Bruno Wolff III 2003-02-06 16:33:14 Re: SQL Intersect like problem