Re: [INTERFACES] ResultSet....

Поиск
Список
Период
Сортировка
От Robson Martins
Тема Re: [INTERFACES] ResultSet....
Дата
Msg-id 000601bed3b1$b3cbc2a0$1ed4d2c8@Designer2.netalfa.com.br
обсуждение исходный текст
Список pgsql-interfaces
-----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!



В списке pgsql-interfaces по дате отправления:

Предыдущее
От: "Robson Martins"
Дата:
Сообщение: Re: [INTERFACES] ResultSet....
Следующее
От: Peter Mount
Дата:
Сообщение: Email to me