ads/auto.txt

Resultset Java First Row

Resultset Java First Row. You can move the cursor of the ResultSet object to the first row from the current position using the first method of the ResultSet interface. 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.

What Is Resultset Interface In Java Easy Examples Edureka
What Is Resultset Interface In Java Easy Examples Edureka from www.edureka.co

You have access to the columns of the first returned row in the first iteration of the. Lang-java -- while resultSetnext. Boolean first throws SQLException Example.

Commonly used Methods of ResultSet Interface in Java Example for ResultSet Interface.

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. A ResultSet object maintains a cursor that points to the current row in the result set. The next method of the ResultSet interface moves the pointer of the current ResultSet object to the next row from the current position. However when a ResultSet object is first created the cursor is positioned before the first row.