Skip site navigation (1) Skip section navigation (2)

Re: [INTERFACES] ResultSet....

From: "Robson Martins" <robson(at)netalfa(dot)com(dot)br>
To: "pgsql-interfaces" <pgsql-interfaces(at)postgresql(dot)org>
Subject: Re: [INTERFACES] ResultSet....
Date: 1999-07-21 17:26:07
Message-ID: 000c01bed39e$1e9187a0$1ed4d2c8@Designer2.netalfa.com.br (view raw or flat)
Thread:
Lists: pgsql-interfaces
-----Mensagem original-----
De: Constantin Teodorescu <teo(at)flex(dot)ro>
Para: Robson Martins <robson(at)netalfa(dot)com(dot)br>
Cc: PostgreSQL Interfaces <pgsql-interfaces(at)postgreSQL(dot)org>
Data: Quarta-feira, 21 de Julho de 1999 11:38
Assunto: Re: [INTERFACES] ResultSet....


>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
>

Hello all and Constantin
Thanks for your big patience with me :)
I have the documentation, and i got the answer by myself.
ahh..Another thing. You gave me the wrong answer to get the count value i
have to use:
    total = rs.getInt("count");
Cya all...
Hugs...Robson!



pgsql-interfaces by date

Next:From: Robson MartinsDate: 1999-07-21 19:46:18
Subject: Re: [INTERFACES] ResultSet....
Previous:From: Thomas LockhartDate: 1999-07-21 17:05:47
Subject: Re: [ANN] pg.el v0.2 -- Emacs Lisp interface to PostgreSQL

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group