l******e 发帖数: 27 | 1 rs.updateInt(2, 1010);
rs.updateRow();
System.out.println(rs.getInt(new_att_index)); // print out the new value 1010
After rs is closed. The record in the databased is not changed! I'm using
ACCESS. |
b*e 发帖数: 3845 | 2 why not just use some simple query like 'update ... where ...' instead.
【在 l******e 的大作中提到】![](/moin_static193/solenoid/img/up.png) : rs.updateInt(2, 1010); : rs.updateRow(); : System.out.println(rs.getInt(new_att_index)); // print out the new value 1010 : After rs is closed. The record in the databased is not changed! I'm using : ACCESS.
|
s**o 发帖数: 584 | 3 did you commit the change?
【在 l******e 的大作中提到】![](/moin_static193/solenoid/img/up.png) : rs.updateInt(2, 1010); : rs.updateRow(); : System.out.println(rs.getInt(new_att_index)); // print out the new value 1010 : After rs is closed. The record in the databased is not changed! I'm using : ACCESS.
|