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 19:46:18
Message-ID: 000601bed3b1$b3cbc2a0$1ed4d2c8@Designer2.netalfa.com.br
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

-----Mensagem original-----
De: Constantin Teodorescu <teo(at)flex(dot)ro>
Para: Robson Martins <robson(at)netalfa(dot)com(dot)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!

Browse pgsql-interfaces by date

  From Date Subject
Next Message Francis Zorrilla 1999-07-21 20:18:39 Connect to Delphi 3.0
Previous Message Robson Martins 1999-07-21 17:26:07 Re: [INTERFACES] ResultSet....