Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 / sumit

The question is not pretty clear. However, before retriving the records from the database if you want to make sure you get only 100 records in one hit. U can use the following API after creating the statement object.

Statement.setFetchSize(100);

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

explain about special characters?

1037


How does jdbc work?

927


What is the role of the jdbc drivermanager class?

992


What does connection pooling mean ?

1058


Prepared statements are faster. Why?

1114


What is jdbc driver?

945


Which type of JDBC driver is the fastest one?

1141


Explain the process of creating tables using NetBeans IDE?

1018


What is jdbc connection class?

949


Can resultset be null in java?

985


What is namedparameterjdbctemplate?

1041


What is the role of jdbc drivermanager class?

1123


What is the major difference between java.util.date and java.sql.date data type?

1026


DB2 Universal claims to support JDBC 2.0, But I can only get JDBC 1.0 functionality. What can I do?

1028


What is jdbc connection string?

1044