| From: | "Wei Weng" <wweng(at)kencast(dot)com> | 
|---|---|
| To: | <pgsql-sql(at)postgresql(dot)org> | 
| Subject: | Re: is it possible to get the number of rows of a table? | 
| Date: | 2001-09-26 16:56:07 | 
| Message-ID: | NEBBLAIMPMNDAPBMNGJNIEPGCBAA.wweng@kencast.com | 
| Views: | Whole Thread | Raw Message | Download mbox | Resend email | 
| Thread: | |
| Lists: | pgsql-sql | 
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(at)postgresql(dot)org
> [mailto:pgsql-sql-owner(at)postgresql(dot)org]On Behalf Of Frederick Klauschen
> Sent: Wednesday, September 26, 2001 11:15 AM
> To: pgsql-sql(at)postgresql(dot)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(at)postgresql(dot)org)
>
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Masaru Sugawara | 2001-09-26 17:27:25 | Re: plpgsql function case statement | 
| Previous Message | Frederick Klauschen | 2001-09-26 15:14:32 | is it possible to get the number of rows of a table? |