sql - update database java -
i'm working on database containing 2 columns (nom (string) ,tmp(integer)). when tried update , first row became last. can update , maintain same order?
statement state = conn.createstatement(resultset.type_scroll_sensitive, resultset.concur_updatable); resultset result = state.executequery("select * cities"); result.absolute(1); result.updatestring("nom", "xxx"); result.updaterow();
here's databasebefore , after excution of code.
the results displayed ordered primary key. since changed primary key nom
field ordering changed well.
Comments
Post a Comment