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 the use of jdbc api?

976


Explain different types of locks in jdbc?

944


How can I manage special characters when I execute an insert query?

945


What is the difference between executing, executequery, executeupdate in jdbc?

1008


What happens if we don't close the connection in jdbc?

882


What is jdbc class forname?

967


Why jdbc is used in java?

955


What are the differences between stored procedure and functions?

1036


What is drivermanager in jdbc?

971


How vendor Naming registry supports JNDI?

2202


What does the jdbc resultsetmetadata interface?

948


How do I start debugging problems related to the JDBC API?

1027


Which is faster jdbc or odbc?

909


How can we set null value in jdbc preparedstatement?

966


What class.forname will do while loading drivers of jdbc?

941