Re: cannot use result of (insert .. returning)

From: Tino Wildenhain <tino(at)wildenhain(dot)de>
To: dvs <dvs(at)fon(dot)kamchatka(dot)ru>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: cannot use result of (insert .. returning)
Date: 2008-05-31 06:53:31
Message-ID: 4840F5EB.4000301@wildenhain.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

dvs wrote:
> Hello,
>
> I need to use query like:
> ,c from anytable
> where condition
> but it say
> ERROR: syntax error at or near "into"

did you try with:

select (insert into test (a) values (x) returning b) query_a JOIN c ON ... ?

Tino.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message dvs 2008-05-31 08:29:32 Re: cannot use result of (insert .. returning)
Previous Message Brian Cox 2008-05-30 22:09:30 conditional alter table