Re: cannot use result of (insert .. returning) - Mailing list pgsql-general

From dvs
Subject Re: cannot use result of (insert .. returning)
Date
Msg-id 012301c8c2f8$77be7e70$0e09a8c0@dvs
Whole thread Raw
In response to cannot use result of (insert .. returning)  ("dvs" <dvs@fon.kamchatka.ru>)
List pgsql-general
>> 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 ...
> ?

you about
   select * from (insert into test (a) values (x) returning b) z
?
it get the same error...


pgsql-general by date:

Previous
From: Tino Wildenhain
Date:
Subject: Re: cannot use result of (insert .. returning)
Next
From: Oliver Kohll
Date:
Subject: Re: Mediawiki 1.10 and PG 8.3 upgrade