Re: Number of rows in a cursor ?

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

> 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;

Ok, and when I use the C interface the "DECLARE .." function will return 
the row count ?

Can I use PQntuples( res ) after the "DECLARE CURSOR" statement (if so, 
it don't work for me :-)) ?

/BL


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

Предыдущее
От:
Дата:
Сообщение: Re: Number of rows in a cursor ?
Следующее
От: Bo Lorentsen
Дата:
Сообщение: Re: Number of rows in a cursor ?