| От | Tom Lane |
|---|---|
| Тема | Re: Cursor Error |
| Дата | |
| Msg-id | 10903.1217523050@sss.pgh.pa.us обсуждение |
| Ответ на | Re: Cursor Error ("Bob Pawley" <rjpawley@shaw.ca>) |
| Список | pgsql-general |
"Bob Pawley" <rjpawley@shaw.ca> writes:
> Right.
> This is the cursor statement.
> Open procgraphic for select p_id.p_id.process_id from p_id.p_id,
> processes_count
> where p_id.p_id.p_id_id = processes_count.p_id_id;
Sorry, we're not bright enough to handle WHERE CURRENT OF on a join
--- per the fine manual,
The cursor must be a simple (non-join, non-aggregate) query on
the UPDATE's target table.
I don't recall offhand whether there's some deep technical reason
for the restriction against joins, or we just didn't get around to
it. In any case, you'll need to change the cursor to return the
table's primary key and use that to target the UPDATE.
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера