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

There is two ways to getting the limited records from the
DB.
1)we can use sql command :
set rowcount 100 select * from mytab.

2)Instead of set rowcount you can use setMaxRow(100) method.

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is jdbc and odbc?

936


Does JDBC support stored procedures?

1002


What are the main steps in java to make JDBC connectivity?

1017


Explain how to make updates to the updatable resultsets.

924


What port does jdbc use?

973


What is jdbc driver?

908


What is setautocommit in jdbc?

926


What are the packages are used in jdbc?

1044


What is jdbc vs odbc?

954


What do you understand by jdbc datasource?

1029


There is a method getColumnCount in the JDBC API. Is there a similar method to find the number of rows in a result set?

1043


What happens if connection is not closed in jdbc?

979


Where is jdbc url mysql?

990


What is resultset?

998


How can I get or redirect the log used by DriverManager and JDBC drivers?

937