From: Yury Don <yura@vpcit.ru>
To: pgsql-sql@postgresql.org
Subject: Re: [GENERAL] Getting the result of a query using COUNT(*)
Date: Fri, 25 Aug 2000 09:31:03 +0600
Message-ID: <39A5E877.537238D6@vpcit.ru> (raw)
References: <200008250937570530.005FD1CF@mail.imvi.com.ph>
Jackson Ching wrote:
>
> Hi,
>
> I'm using JSDK 2.0 and IBM JDK 1.3 on RedHat Linux 6.2
>
> As i test my servlet, I got errors saying count(*) column not found in a query like this
>
> SELECT COUNT(*) FROM MyTable
>
> in my rs.getint("COUNT(*)"); in oracle it works fine, in postgresql it doesn't. how should i handle aggregate functions in SQL then?
>
> Thanks
>
> Jackson
What version of rostgres do you use?
SELECT COUNT(*) FROM MyTable works pretty well in postgres 6.5.1 and
later.
Perhaps problem is in java?
--
Sincerely yours,
Yury
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-sql@postgresql.org
Cc: yura@vpcit.ru
Subject: Re: [GENERAL] Getting the result of a query using COUNT(*)
In-Reply-To: <39A5E877.537238D6@vpcit.ru>
References: <200008250937570530.005FD1CF@mail.imvi.com.ph> <39A5E877.537238D6@vpcit.ru>
* 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