pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Jackson Ching <jching@imvi.com.ph>
To: pgsql-general@postgresql.org
Subject: Getting the result of a query using COUNT(*)
Date: Fri, 25 Aug 2000 09:37:57 -0700
Message-ID: <200008250937570530.005FD1CF@mail.imvi.com.ph> (raw)

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




view thread (4+ messages)

Message-ID: <200008250937570530.005FD1CF@mail.imvi.com.ph>
Permalink:  ../200008250937570530.005FD1CF@mail.imvi.com.ph/
Also on:    postgresql.org/message-id/200008250937570530.005FD1CF@mail.imvi.com.ph

 · 

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-sql@postgresql.org
  Cc: jching@imvi.com.ph, pgsql-general@postgresql.org
  Subject: Re: Getting the result of a query using COUNT(*)
  In-Reply-To: <200008250937570530.005FD1CF@mail.imvi.com.ph>
  References: <200008250937570530.005FD1CF@mail.imvi.com.ph>

* 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