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
Is jdbctemplate thread safe?
What are the 4 types of jdbc drivers?
How to test jdbc connection to sql server?
How MS-Access DB can be accessed over a network, using JDBC API?
Explain the difference between rowset vs. Resultset in jdbc?
What is ojvm used for?
What is the role of class.forname while loading drivers?
Why resultset is used in java?
What are the differences between resultset and rowset?
How can I determine where a given table is referenced via foreign keys?
What does executequery return in java?
Is jpa faster than jdbc?
password, is stored in as plain text. What can I do to protect my passwords?
Why “no suitable driver” error occurs?
Give an example of code used for setting up connection with a driver.