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

Is jdbc a middleware?

887


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

822


Is odbc an api?

979


What does the connection object represents?

1005


What is encrypted connection?

957


What is jdbc and its types?

894


Does sql allow null values ? Can we use it within where clause ?

932


Can I set up a connection pool with multiple user IDs? The single ID we are forced to use causes problems when debugging the DBMS.

892


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

933


How can you use preparedstatement in jdbc?

929


What is use of connection pooling?

891


What is sqlwarning and discuss the procedure of retrieving warnings?

950


Explain jdbc savepoint?

907


What is the return type of class.forname() method?

905


What are the types of jdbc drivers that exist?

945