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("<", "<"); 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
Post a Comment