Re: Number of rows in a cursor ?

Поиск
Список
Период
Сортировка
От Thomas Borg Salling
Тема Re: Number of rows in a cursor ?
Дата
Msg-id 430C43F5.2030506@navicon.dk
обсуждение исходный текст
Ответ на Number of rows in a cursor ?  (Bo Lorentsen <bl@netgroup.dk>)
Ответы Re: Number of rows in a cursor ?  (Bo Lorentsen <bl@netgroup.dk>)
Список pgsql-sql
Bo Lorentsen wrote:

> Is it possible to get the total number of rows found in a cursor, or 
> must I make a count(*) and then a select ?

Perhaps:
GET DIAGNOSTICS rc = ROW_COUNT;

(see http://archives.postgresql.org/pgsql-novice/2003-06/msg00143.php 
and 
http://www.postgresql.org/docs/8.0/interactive/plpgsql-statements.html#PLPGSQL-STATEMENTS-DIAGNOSTICS)

/Thomas.



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

Предыдущее
От: Bo Lorentsen
Дата:
Сообщение: Number of rows in a cursor ?
Следующее
От: Szűcs Gábor
Дата:
Сообщение: Re: Tuple insert missing query in ongoing transaction