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

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 (view raw or flat)
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

pgsql-general by date

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

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