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

What is JDBC Statement?

993


What is a jdbc url?

894


What is phantom read and which isolation level prevents it?

1102


Once I have the Java 2 SDK, Standard Edition, from Sun, what else do I need to connect to a database?

999


Why do we need jdbc?

1063


What is the meaning of batch updates?

1095


What is the role of class.forname while loading drivers?

1009


What is type 4 jdbc driver?

849


What are the different types of locking in JDBC?

1011


Which type of JDBC driver is the fastest one?

1088


How can you use preparedstatement in jdbc?

996


How many packages are available in jdbc api?

961


Is jdbc a middleware?

950


Is odbc an api?

1039


Are all the required JDBC drivers to establish connectivity to my database part of the JDK?

987