[ Aleksandar1987 @ 23.06.2008. 13:08 ] @
Kako nullpointer...? Hocu da updateujem bazu, da promenim polje godiste u "1988". Tabela je puna.... Evo metode: Code: 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; } |