Re: Multiple table insert using a CSV list as the datasource - Mailing list pgsql-novice

From Bruno Wolff III
Subject Re: Multiple table insert using a CSV list as the datasource
Date
Msg-id 20020714212259.GA16115@wolff.to
Whole thread Raw
In response to Re: Multiple table insert using a CSV list as the datasource  ("Norman Khine" <norman@khine.net>)
List pgsql-novice
On Sun, Jul 14, 2002 at 22:10:36 +0100,
  Norman Khine <norman@khine.net> wrote:
>
> Is there such an SQL statement where you say:
>
> Take table csv and put column 1, 2, 3 into table products where column 1
> should map to products.column1 etc etc ...

insert into products (column1, column2, column3) select * from csv;

> or take table csv and put column1 and column 4 into table price

insert into price select column1, column4 from csv;

pgsql-novice by date:

Previous
From: "Norman Khine"
Date:
Subject: Re: Multiple table insert using a CSV list as the datasource
Next
From: Chris Palmer
Date:
Subject: Re: Multiple table insert using a CSV list as the datasource