java - ResultSet .next was not called exception is thrown -


i have query this

string sql_query = select name, display_name parameter id = (something); 

after executing query retrieved resultset, , i'm trying update value display_name. it's not working , throwing exception

.next not called.

rs = stmt.executequery(sql_query); string displayname = rs.getstring(display_name); displayname = displayname.replace("&lt;", "<"); rs.updatestring(display_name,display name); 

the problem says in error message. resultset.next() wasn't called. call it. not forgetting check return value.


Comments

Popular posts from this blog

javascript - three.js lot of meshes optimization -

smartface.io - Proper way to change color scheme for whole application -

Email notification in google apps script -