pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Wei Weng <wweng@kencast.com>
To: pgsql-sql@postgresql.org
Subject: Re: is it possible to get the number of rows of a table?
Date: Wed, 26 Sep 2001 12:56:07 -0400
Message-ID: <NEBBLAIMPMNDAPBMNGJNIEPGCBAA.wweng@kencast.com> (raw)
In-Reply-To: <20010926151432.46962.qmail@web10105.mail.yahoo.com>

This should be really easy to implement in a function yourself. And I don't
think there is already something similar in pgsql.

==========
Wei Weng
Network Software Engineer
KenCast Inc.



> -----Original Message-----
> From: pgsql-sql-owner@postgresql.org
> [mailto:pgsql-sql-owner@postgresql.org]On Behalf Of Frederick Klauschen
> Sent: Wednesday, September 26, 2001 11:15 AM
> To: pgsql-sql@postgresql.org
> Subject: [SQL] is it possible to get the number of rows of a table?
>
>
> I would like to compare the number of rows
> of one table and of another and use it in
> a  query like this:
> SELECT * FROM xxxx
> WHERE   "number of rows of table xxxx"
>                   EQUALS
>                    "number of rows of table yyyy"
> i.e. I only want get a query result if the tables
> have the same number of rows.
> Is there a function or a way to do this ?
>
> Thanks,
> Frederick
>
>
> __________________________________________________
> Do You Yahoo!?
> Get email alerts & NEW webcam video instant messaging with Yahoo!
> Messenger. http://im.yahoo.com
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
>     (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
>




view thread (3+ messages)

Message-ID: <NEBBLAIMPMNDAPBMNGJNIEPGCBAA.wweng@kencast.com>
Permalink:  ../NEBBLAIMPMNDAPBMNGJNIEPGCBAA.wweng@kencast.com/
Also on:    postgresql.org/message-id/NEBBLAIMPMNDAPBMNGJNIEPGCBAA.wweng@kencast.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 using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: wweng@kencast.com
  Subject: Re: is it possible to get the number of rows of a table?
  In-Reply-To: <NEBBLAIMPMNDAPBMNGJNIEPGCBAA.wweng@kencast.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