pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Meskes <meskes@postgresql.org>
To: pgsql-interfaces@postgresql.org
Subject: Re: [INTERFACES] What to use to get number of tuples in a query
Date: Sun, 23 May 1999 10:00:15 +0200
Message-ID: <19990523100015.B250@gmx.net> (raw)
In-Reply-To: <3745D54E.B3FCD745@presys.com>
References: <3745D54E.B3FCD745@presys.com>

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!



view thread (2+ messages)

Message-ID: <19990523100015.B250@gmx.net>
Permalink:  ../19990523100015.B250@gmx.net/
Also on:    postgresql.org/message-id/19990523100015.B250@gmx.net

 · 

reply

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 using the --to and --cc options:
  reply via email

  To: pgsql-interfaces@postgresql.org
  Cc: meskes@postgresql.org
  Subject: Re: [INTERFACES] What to use to get number of tuples in a query
  In-Reply-To: <19990523100015.B250@gmx.net>

* 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