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(); 

enter image description here here's databasebefore , after excution of code.

the results displayed ordered primary key. since changed primary key nom field ordering changed well.


Comments

Popular posts from this blog

javascript - Google App Script ContentService downloadAsFile not working -

javascript - Function overwritting -

c# - Exception when attempting to modify Dictionary -