Re: Cursor Error

Поиск
Список
Период
Сортировка
От Craig Ringer
Тема Re: Cursor Error
Дата
Msg-id 4892C8F2.2020007@postnewspapers.com.au
обсуждение исходный текст
Ответ на Re: Cursor Error  ("Bob Pawley" <rjpawley@shaw.ca>)
Список pgsql-general
Bob Pawley wrote:
> Is it allowed to declare a cursor in this manner??
>
> Declare
> procgraphic cursor 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;

Using DECLARE instead of OPEN? Yes, but that won't somehow make a cursor
involving a join updatable. See:

http://www.postgresql.org/docs/8.3/interactive/plpgsql-cursors.html

DECLARE and OPEN do not have exactly the same meaning, as explained by
the above documentation. To use a cursor defined with DECLARE you must
use OPEN - see section 38.7.2.3 ("Opening a Bound Cursor") of the
documentation.

--
Craig Ringer

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

Предыдущее
От: Craig Ringer
Дата:
Сообщение: Re: Copy fails
Следующее
От: Marc Cuypers
Дата:
Сообщение: Postgresql not using an index