Kiero k el numero k traiga lo ponga en el campo de un formulario:
Código:
Gracias a todos!!!!...public int getnumero()
{
String sql_query = "Select IDENT_CURRENT('Memos')";
ResultSet rs;
int numeromemo=0;
try {
Statement sql = _con.createStatement();
rs = sql.executeQuery(sql_query);
while(rs.next()) {
numeromemo= rs.getInt(1);
}
rs.close();
} catch (SQLException e) {
} catch (NullPointerException e){
}
return numeromemo;
}//fin del metodo.

