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

Поиск
Список
Период
Сортировка
От Heikki Linnakangas
Тема Re: cannot use result of (insert..returning)
Дата
Msg-id 48468922.9030108@enterprisedb.com
обсуждение исходный текст
Ответ на cannot use result of (insert..returning)  ("dvs" <dvs@fon.kamchatka.ru>)
Ответы Re: cannot use result of (insert..returning)
Список pgsql-hackers
dvs wrote:
> Hello,
> 
> I need to use query like:
>    select (insert into test (a) values (x) returning b),c from anytable 
> where condition
> but it say
>    ERROR: syntax error at or near "into"
> 
> Is this a bug?

No, it's a known limitation.

--   Heikki Linnakangas  EnterpriseDB   http://www.enterprisedb.com


В списке pgsql-hackers по дате отправления:

Предыдущее
От: "Heikki Linnakangas"
Дата:
Сообщение: Re: Core team statement on replication in PostgreSQL
Следующее
От: Decibel!
Дата:
Сообщение: Re: intercepting WAL writes