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