length of recordset read through a cursor

Поиск
Список
Период
Сортировка
От Knut P. Lehre
Тема length of recordset read through a cursor
Дата
Msg-id 5.2.0.9.2.20030729160030.019b5ad0@uio-pop.uio.no
обсуждение исходный текст
Список pgsql-sql
After declaring a cursor, one way of obtaining the length of the resultset 
is to perform a "MOVE 0" and read the PQcmdStatus which returns a "MOVE nn" 
where nn is the length of the resultset. (A negative MOVE can then be  used 
to allow starting to fetch records from the beginning of the resultset.)

Is there another, possibly faster way?

Thanks, K.P.Lehre



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

Предыдущее
От: teknokrat
Дата:
Сообщение: converting interval to timestamp
Следующее
От:
Дата:
Сообщение: Does a the block of code within a stored procedure constitute a transaction?