i have 1000 records in resultset, how to get first 100
records from resultset, because resultset fetch all 1000
records at a time?
Answer Posted / sri
ResultSet.getRow() will give you the row number where the
resultset cursor is in , check for ResultSet.getRow()==100
and then break out of the loop
| Is This Answer Correct ? | 4 Yes | 2 No |
Post New Answer View All Answers
Differentiate between a statement and a preparedstatement.
What are the exceptions in jdbc?
Is jdbc a framework?
How can I create a custom RowSetMetaData object from scratch?
What are the different types of lockings in jdbc?
What is metadata in programming?
Differentiate between type_scroll_insensitive and type_scroll_sensitive.
What are four types of JDBC driver?
What happens if we don't close the connection in jdbc?
What is jdbc resultsetmetadata interface?
How to check jdbc driver version in websphere?
What are the functions of the jdbc connection interface?
What is an advantage of using the jdbc connection pool?
Explain the role of driver in jdbc.
What is a statement in java?