From: Constantin Teodorescu <teo@flex.ro>
To: Robson Martins <robson@netalfa.com.br>
Cc: PostgreSQL Interfaces <pgsql-interfaces@postgreSQL.org>
Subject: Re: [INTERFACES] ResultSet....
Date: Wed, 21 Jul 1999 17:08:06 +0300
Message-ID: <3795D446.569D45E7@flex.ro> (raw)
References: <000701bed37c$3fe796a0$1ed4d2c8@Designer2.netalfa.com.br>
First of all :
PLEASE, FIND A GOOD JAVA BOOK AND LEARN JAVA AND JDBC!
Also, download JDBC documentation from Sun and read it!
You will find all the information you need and even some examples.
This list is * NOT * intented to be used for Java (JDBC) training.
> Robson Martins wrote:
>
> 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!
Try total = rs.getInt(1);
Best regards,
--
Constantin Teodorescu
FLEX Consulting Braila, ROMANIA
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: teo@flex.ro, robson@netalfa.com.br
Subject: Re: [INTERFACES] ResultSet....
In-Reply-To: <3795D446.569D45E7@flex.ro>
* 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