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
What is the difference between ojdbc6 and ojdbc7?
What is jdbc connection?
Does jdbctemplate use prepared statements?
How to update a resultset programmatically?
Explain the JDBC Architecture?
Why should we close database connections in java?
Does jdbc use ssl?
If I use the JDBC API, do I have to use ODBC underneath?
List some new features available in jdbc 4.0?
What class.forname will do while loading drivers of jdbc?
What is jdbc and explain jdbc architecture?
Why do we need jdbc api?
How to set NULL values in JDBC PreparedStatement?
What does adapter class provide?
What is the use of jdbc api?