pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Robson Martins <robson@netalfa.com.br>
To: pgsql-interfaces <pgsql-interfaces@postgresql.org>
Subject: ResultSet....
Date: Wed, 21 Jul 1999 10:23:40 -0300
Message-ID: <000701bed37c$3fe796a0$1ed4d2c8@Designer2.netalfa.com.br> (raw)

Hello all, i want to make a select count(*) and set a variable with this value i''m using the command:
   rs = st.executeQuery("select count(*) from imoveis where imo_situ = 'venda' and imo_tipo = 'kiti'");
   total = rs;
But this doesnt work!
How do i do what i want?
I use Postgresql 6.5 and everything is working right (database connection), i only want to know how do i do this!
Help me..
Hugs...Robson

view thread (5+ messages)  latest in thread

Message-ID: <000701bed37c$3fe796a0$1ed4d2c8@Designer2.netalfa.com.br>
Permalink:  ../000701bed37c$3fe796a0$1ed4d2c8@Designer2.netalfa.com.br/
Also on:    postgresql.org/message-id/000701bed37c$3fe796a0$1ed4d2c8@Designer2.netalfa.com.br

 · 

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-interfaces@postgresql.org
  Cc: robson@netalfa.com.br
  Subject: Re: ResultSet....
  In-Reply-To: <000701bed37c$3fe796a0$1ed4d2c8@Designer2.netalfa.com.br>

* 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