Re: I cant find it or I'm just lazy ?

Поиск
Список
Период
Сортировка
От Martijn van Oosterhout
Тема Re: I cant find it or I'm just lazy ?
Дата
Msg-id 20030224232458.GA23996@svana.org
обсуждение исходный текст
Ответ на I cant find it or I'm just lazy ?  (Darko Prenosil <darko.prenosil@finteh.hr>)
Список pgsql-general
On Mon, Feb 24, 2003 at 07:53:05PM +0000, Darko Prenosil wrote:
>     I need two answers I did not find in documentation :
>
> How can I get exact number of rows in DECLARED CURSOR ?
> OK, I can FETCH until NULL, but this does not fits my needs !

You need to move to the end of the cursor. When you declare a cursor it
doesn't run the query yet. You have to tell it to run the query before it
can tell you how many rows it is. I think the command is MOVE.

--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Support bacteria! They're the only culture some people have.

Вложения

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

Предыдущее
От: Medi Montaseri
Дата:
Сообщение: Re: 7.4?
Следующее
От: Joseph Shraibman
Дата:
Сообщение: How do I change the server encoding?