Using Resultset In Java. The ResultSet object holds the tabular data returned by the methods that execute the statements which quires the database executeQuery method of the Statement interface in general. So basicly a Statement can only give you one ResultSet at a time so you loose the first result when you execute the second query.
Columns are numbered from 1. So basicly a Statement can only give you one ResultSet at a time so you loose the first result when you execute the second query. When the ResultSet is created the cursors location is one position ahead of the first row.
In default the cursor positions before the first row of the result data.
It is used to store the data which are returned from the database table after the execution of the SQL statements in the Java Program. Coderwall Ruby Python JavaScript Front-End Tools iOS. ResultSet Interface is present in the javasql package. SQL in Java 8.