pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David Gagnon <dgagnon@siunik.com>
To: pgsql-jdbc@postgresql.org
Subject: Getting the number or row returned by a select. Alway tought it was not possible until I say pgAdmin who gives it
Date: Fri, 15 Apr 2005 15:53:33 -0400
Message-ID: <42601BBD.6060307@siunik.com> (raw)
In-Reply-To: <425EE184.8060303@opencloud.com>
References: <20050414154508.66799.qmail@web50407.mail.yahoo.com>
	<425EE184.8060303@opencloud.com>

Hi all,

  In my system I alway do a select X from Y.  followed by a  select 
count() from Y to get the number of row in my first request.  I heard it 
was possible to get the total number of rows from a select in a 
VB6/MSSQL env.

Today I saw in PGAdminIII that it gives the count(*) from any query that 
return more that 100 lines:  This query return more than 100 rows (12234 
rows) do you want to display them.

So did I miss something obvious.  Is it possible to get the total number 
of row returned from a query without doing another select.

Thanks to confirm that :-)

Have a goog week-end
/David



view thread (2+ messages)  latest in thread

Message-ID: <42601BBD.6060307@siunik.com>
Permalink:  ../42601BBD.6060307@siunik.com/
Also on:    postgresql.org/message-id/42601BBD.6060307@siunik.com

 · 

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 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-jdbc@postgresql.org
  Cc: dgagnon@siunik.com
  Subject: Re: Getting the number or row returned by a select. Alway tought it was not possible until I say pgAdmin who gives it
  In-Reply-To: <42601BBD.6060307@siunik.com>
  References: <20050414154508.66799.qmail@web50407.mail.yahoo.com> <425EE184.8060303@opencloud.com> <42601BBD.6060307@siunik.com>

* 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