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

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -