Re: server side cursors update & delete,

Поиск
Список
Период
Сортировка
От Adrian Klaver
Тема Re: server side cursors update & delete,
Дата
Msg-id 56BA0203.30107@aklaver.com
обсуждение исходный текст
Ответ на server side cursors update & delete,  (Vardhan <vrdhn0@gmail.com>)
Ответы Re: server side cursors update & delete,  (Vardhan <vrdhn0@gmail.com>)
Список psycopg
On 02/09/2016 01:31 AM, Vardhan wrote:
> Hi,
>
> The section   '39.7.3.3. UPDATE/DELETE WHERE CURRENT OF' of
> http://www.postgresql.org/docs/9.2/static/plpgsql-cursors.html
> specifies the syntax as:
>
>    UPDATE table SET ... WHERE CURRENT OF cursor;
>    DELETE FROM table WHERE CURRENT OF cursor;
>
> Is there a way to generate these syntax for update & delete ?
>
> Right now, if i get the error that .execute() can't be called more than once !

Have you looked at?:

http://initd.org/psycopg/docs/usage.html#server-side-cursors

and

http://initd.org/psycopg/docs/connection.html#connection.cursor
>
> --
> TIA
> Vardhan
>
>


--
Adrian Klaver
adrian.klaver@aklaver.com


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

Предыдущее
От: Vardhan
Дата:
Сообщение: server side cursors update & delete,
Следующее
От: Vardhan
Дата:
Сообщение: Re: server side cursors update & delete,