From: Robert B. Easter <reaster@comptechnews.com>
To: pgsql-sql@postgresql.org
Subject: How to get count of rows in cursor
Date: Sun, 16 Jul 2000 18:02:51 -0400
Message-ID: <00071618105700.02819@comptechnews> (raw)
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: reaster@comptechnews.com
Subject: Re: How to get count of rows in cursor
In-Reply-To: <00071618105700.02819@comptechnews>
References: <00071618105700.02819@comptechnews>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox