Skip site navigation (1) Skip section navigation (2)

Re: [INTERFACES] What to use to get number of tuples in a query

From: Michael Meskes <meskes(at)postgresql(dot)org>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: [INTERFACES] What to use to get number of tuples in a query
Date: 1999-05-23 08:00:15
Message-ID: (view raw, whole thread or download thread mbox)
Lists: 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 Meskes                         | Go SF 49ers!
Th.-Heuss-Str. 61, D-41812 Erkelenz    | Go Rhein Fire!
Tel.: (+49) 2431/72651                 | Use Debian GNU/Linux!
Email: Michael(dot)Meskes(at)gmx(dot)net          | Use PostgreSQL!

In response to

pgsql-interfaces by date

Next:From: Michael MeskesDate: 1999-05-23 09:12:31
Subject: Re: [INTERFACES] ECPG feature
Previous:From: MAILER-DAEMONDate: 1999-05-23 04:27:05
Subject: Undeliverable Message

Privacy Policy | About PostgreSQL
Copyright © 1996-2017 The PostgreSQL Global Development Group