Re: Number of rows in a table

From: Nabil Sayegh <postgresql(at)e-trolley(dot)de>
To: Tomka Gergely <tomka(at)zeus(dot)gau(dot)hu>
Cc: Louise Cofield <lcofield(at)box-works(dot)com>, pgsql-novice <pgsql-novice(at)postgresql(dot)org>
Subject: Re: Number of rows in a table
Date: 2003-08-25 16:23:24
Message-ID: 1061828603.503.7.camel@billy
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice

Am Mo, 2003-08-25 um 18.14 schrieb Tomka Gergely:
> 2003-08-25 ragyogó napján Louise Cofield ezt üzente:
>
> > I haven't been able to figure out how to determine the number of
> > populated rows in a table - such as "select max(rownum)" in Oracle.
>
> select count(*) from usw.; ?

Keep i mind Louise, that this is an aggregate function, i.e. all other
columns you want to get in the same query must be GROUPed or used in an
aggregate function, too.

bye
--
e-Trolley Sayegh & John, Nabil Sayegh
Tel.: 0700 etrolley /// 0700 38765539
Fax.: +49 69 8299381-8
PGP : http://www.e-trolley.de

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Luis Hernandez 2003-08-25 16:32:02 doc on searching, and sorting
Previous Message Gaitor, Jim 2003-08-25 16:21:03 Unsubscribe