Operation not allowed for a result set of type ResultSet.TYPE_FORWARD_ONLY.
rs.last() is the cause of the problem. I have no problem when I use . But the thing is, I only need to retrieve the last row of the reading column instead of retrieving everything. I also tried putting in
3 Replies
⌛
This post has been reserved for your question.
Hey @GeneralCore! Please useTIP: Narrow down your issue to simple and precise questions to maximize the chance that others will reply in here./close
or theClose Post
button above when your problem is solved. Please remember to follow the help guidelines. This post will be automatically closed after 300 minutes of inactivity.
Oh, I actually fixed it now with the help of gemini. I had to change this
from
to
I have already done this before, and I did not add argument in con.createStatement before, and it did not show any errors. Why is that? T - T
Post Closed
This post has been closed by <@307017632287162369>.