Re: Inserting data from one table to another - Mailing list pgsql-novice

From Thom Brown
Subject Re: Inserting data from one table to another
Date
Msg-id bddc86151002170517n22b1675ap31d04a153b359048@mail.gmail.com
Whole thread Raw
In response to Inserting data from one table to another  (Krzysztof Walkiewicz <bars0@op.pl>)
List pgsql-novice
On 17 February 2010 13:02, Krzysztof Walkiewicz <bars0@op.pl> wrote:
> Hi everybody!
>
> I try to insert data from one table to another with:
>
> INSERT INTO L_klienci_wysylka ('id_klienta','data_wys')(SELECT
> 'ID','data_wys' FROM 'I_klienci')
>
> but I get:
>
> 4: Table not found in statement [INSERT INTO L_klienci_wysylka]
>
> I'm sure that table L_klienci_wysylka exist because I can enter the data
> manually.
> I am using OpenOffice Base 3.2.0 with HSQL engine.
>
> I know that this is PostgreSQL mailing list, but I can't get the answer from
> OOBase mailing list.
>
> Krzysztof

You've specified the table in the select statement as a value.  Remove
the single quotes.

Regards

Thom

pgsql-novice by date:

Previous
From: Krzysztof Walkiewicz
Date:
Subject: Inserting data from one table to another
Next
From: Thom Brown
Date:
Subject: Re: Inserting data from one table to another