getting result information of DECLARE CURSOR statement

Поиск
Список
Период
Сортировка
От Yusron Hilmy
Тема getting result information of DECLARE CURSOR statement
Дата
Msg-id 022501c12079$6a1aafb0$3c0aa8c0@yusron
обсуждение исходный текст
Список pgsql-general
Hi,

I am a new member of this list. I have some problem with postgres CURSOR
(related to libpq).
I have created a CURSOR with :
    PQexec(conn, "DECLARE mycursor CURSOR FOR SELECT * from test");

How I can get how many tuples the result are without I have to fetch all its
result (I use FETCH NEXT instead of FETCH ALL) ?

Thank you for your help

Yusron




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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: createdb confusion
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Re: First Saturday and Last Saturday of a month