How to get count of rows in cursor

Поиск
Список
Период
Сортировка
От Robert B. Easter
Тема How to get count of rows in cursor
Дата
Msg-id 00071618105700.02819@comptechnews
обсуждение исходный текст
Список pgsql-sql
Is there some fast way to get the count of rows in a cursor?

FETCH count(*) FROM mycursor; -- expresses what I want

I know I could always just do a SELECT count(*) in a separate query, but I'm
asking in case a cursor has this information already and I just don't know how
to get it.

--         - Robert


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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: Select by priority
Следующее
От: Carolyn Lu Wong
Дата:
Сообщение: SQL question