Skip site navigation (1) Skip section navigation (2)

Re: Inserting data from one table to another

From: Thom Brown <thombrown(at)gmail(dot)com>
To: Krzysztof Walkiewicz <bars0(at)op(dot)pl>
Cc: pgsql-novice(at)postgresql(dot)org
Subject: Re: Inserting data from one table to another
Date: 2010-02-17 13:17:08
Message-ID: bddc86151002170517n22b1675ap31d04a153b359048@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-novice
On 17 February 2010 13:02, Krzysztof Walkiewicz <bars0(at)op(dot)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

In response to

pgsql-novice by date

Next:From: Thom BrownDate: 2010-02-17 13:43:20
Subject: Re: Inserting data from one table to another
Previous:From: Krzysztof WalkiewiczDate: 2010-02-17 13:02:48
Subject: Inserting data from one table to another

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group