Re: howto determine rows count to be returned by DECLARE ... SELECT ...

Поиск
Список
Период
Сортировка
От Dimitri Fontaine
Тема Re: howto determine rows count to be returned by DECLARE ... SELECT ...
Дата
Msg-id 87my7fbbvf.fsf@hi-media-techno.com
обсуждение исходный текст
Ответ на howto determine rows count to be returned by DECLARE ... SELECT ...  (Konstantin Izmailov <pgfizm@gmail.com>)
Список pgsql-general
Konstantin Izmailov <pgfizm@gmail.com> writes:

> However, it is not clear how to determine max rows count that the
> cursor can return. The count is necessary for two purposes: render
> scrollbar and support jumping to the last rows in the grid.

You can MOVE LAST, it'll tell you how many rows are in there, then MOVE
FIRST or wherever then FETCH 10 or your page size in rows.

Regards,
--
dim

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

Предыдущее
От: Alban Hertroys
Дата:
Сообщение: Re: "= Null" <> "is Null"?
Следующее
От: Dimitri Fontaine
Дата:
Сообщение: Re: "= Null" <> "is Null"?