Hocu da updateujem bazu, da promenim polje godiste u "1988". Tabela je puna....
Evo metode:
static void updateGodiste(String ime) {
try {
s.execute("SELECT * FROM Tabela");
rs = s.getResultSet();
} catch (Exception e) {
System.out.println("Error: " + e);
}
try {
rs.next();
rs.updateString("Godiste", "1988");
int a = rs.getInt(1);
System.out.println(a);
rs.close();
} catch (SQLException ex) {
ex.printStackTrace();
}
try {
s.close();
con.close();
} catch (Exception e) {
System.out.println("Error: " + e);
}
return;
}