pg.ddx.io pgsql-interfaces@postgresql.org mailing list archive
help / color / mirror / Atom feedWhat to use to get number of tuples in a query
2+ messages / 2 participants
[nested] [flat]
* What to use to get number of tuples in a query
@ 1999-05-21 21:51 Hitesh Patel <hitesh@presys.com>
1999-05-23 08:00 ` Re: [INTERFACES] What to use to get number of tuples in a query Michael Meskes <meskes@postgresql.org>
0 siblings, 1 reply; 2+ messages in thread
From: Hitesh Patel @ 1999-05-21 21:51 UTC (permalink / raw)
To: pgsql-interfaces
What should I use to get the number of tuples returned by a PQexec()?
PQntuples seems to be doing the job but i'm not sure if that is the
right thing to use.
--
|---------------------------------|----------------------------|
| Hitesh Patel | Voice: (541) 759-3126 |
| Facilities Development Manager | Fax: (541) 759-3214 |
| Preferred Systems | Email: hitesh@presys.com |
|---------------------------------|----------------------------|
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: [INTERFACES] What to use to get number of tuples in a query
1999-05-21 21:51 What to use to get number of tuples in a query Hitesh Patel <hitesh@presys.com>
@ 1999-05-23 08:00 ` Michael Meskes <meskes@postgresql.org>
0 siblings, 0 replies; 2+ messages in thread
From: Michael Meskes @ 1999-05-23 08:00 UTC (permalink / raw)
To: pgsql-interfaces
On Fri, May 21, 1999 at 02:51:10PM -0700, Hitesh Patel wrote:
> What should I use to get the number of tuples returned by a PQexec()?
> PQntuples seems to be doing the job but i'm not sure if that is the
> right thing to use.
At least that's the command I use with ecpg. :-)
However, if you're executing commands that do not return tuples you have to
use PQcmdTuples().
Michael
--
Michael Meskes | Go SF 49ers!
Th.-Heuss-Str. 61, D-41812 Erkelenz | Go Rhein Fire!
Tel.: (+49) 2431/72651 | Use Debian GNU/Linux!
Email: Michael.Meskes@gmx.net | Use PostgreSQL!
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~1999-05-23 08:00 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
1999-05-21 21:51 What to use to get number of tuples in a query Hitesh Patel <hitesh@presys.com>
1999-05-23 08:00 ` Michael Meskes <meskes@postgresql.org>
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