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: Re: [INTERFACES] ResultSet....
Date: Wed, 21 Jul 1999 16:46:18 -0300
Message-ID: <000601bed3b1$b3cbc2a0$1ed4d2c8@Designer2.netalfa.com.br> (raw)

-----Mensagem original-----
De: Constantin Teodorescu <teo@flex.ro>
Para: Robson Martins <robson@netalfa.com.br>
Data: Quarta-feira, 21 de Julho de 1999 15:24
Assunto: Re: [INTERFACES] ResultSet....


>Robson Martins wrote:
>>
>> ahh..Another thing. You gave me the wrong answer to get the count value i
>> have to use:
>>     total = rs.getInt("count");
>
>You're wrong !
>Both of them work :-)
>
>See JDBC documentation bellow:
>
>
>public int getInt(int columnIndex)
>           throws SQLException
>
>Gets the value of a column in the current row as a Java int.
>Parameters:
>  columnIndex - the first column is 1, the second is 2, ...
>Returns:
>  the column value; if the value is SQL NULL, the result is 0
>Throws:
>  SQLException - if a database access error occurs
>
>
>               and also
>
>
>public int getInt(String columnName)
>           throws SQLException
>
>Gets the value of a column in the current row as a Java int.
>Parameters:
>  columnName - the SQL name of the column
>Returns:
>  the column value; if the value is SQL NULL, the result is 0
>Throws:
>  SQLException - if a database access error occurs
>
>Best regards,
>Teo
>

Thanks for the help man....
Hugs...Robson!




view thread (5+ messages)

Message-ID: <000601bed3b1$b3cbc2a0$1ed4d2c8@Designer2.netalfa.com.br>
Permalink:  ../000601bed3b1$b3cbc2a0$1ed4d2c8@Designer2.netalfa.com.br/
Also on:    postgresql.org/message-id/000601bed3b1$b3cbc2a0$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: [INTERFACES] ResultSet....
  In-Reply-To: <000601bed3b1$b3cbc2a0$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