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

Does sql allow null values ?

912


How are jdbc statements used?

888


What is ODBC and JDBC? How do you connect the Database?

976


What are different parts of a url?

895


Differentiate between stored procedure and functions?

1003


Why “no suitable driver” error occurs?

1011


What is jdbc odbc bridge?

896


How to move the cursor in scrollable resultset ?

985


What is a merge field?

887


When does the result for an sql statement return null?

857


What is jdbc driver in java?

879


Where is ojdbc14 jar located?

895


Can we have foreign key reference to a non primary key column ?

909


What is connection pooling and why it is used?

935


What is 2 phase commit?

1103