Re: Number of rows in a cursor ?

Поиск
Список
Период
Сортировка
От Russell Simpkins
Тема Re: Number of rows in a cursor ?
Дата
Msg-id BAY103-DAV72BF461390EA073012267B5A80@phx.gbl
обсуждение исходный текст
Ответ на Re: Number of rows in a cursor ?  (<neil.saunders@accenture.com>)
Ответы Re: Number of rows in a cursor ?  (Bo Lorentsen <bl@netgroup.dk>)
Список pgsql-sql
> neil.saunders@accenture.com wrote:
>
>>You cannot count the number of rows in a cursor, unfortunately. I recently 
>>ran in to this problem.
>>
> How sad, then I have to repeat the query, first for counting and last for 
> data fetch :-(
>
> /BL
>

If you need a count, why not just execute one of the methods to get a count. 
i.e.e select count(id) ... 


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

Предыдущее
От: "Dinesh Pandey"
Дата:
Сообщение: Re: SQLException - SET AUTOCOMMIT TO OFF is no longer supported
Следующее
От: "Russell Simpkins"
Дата:
Сообщение: Re: SQLException - SET AUTOCOMMIT TO OFF is no longer supported