Vladislav Rashkov wrote:
The ResultSet obtained in the above lines of code would not be pointing to the results obtained from the query. So in order to make it point to the first set of results, you would have to call
rs.next()
Alternatively, you can alter the query/code as follow: