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

ResultSet.getRow() will give you the row number where the
resultset cursor is in , check for ResultSet.getRow()==100
and then break out of the loop

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Differentiate between a statement and a preparedstatement.

931


What are the exceptions in jdbc?

902


Is jdbc a framework?

843


How can I create a custom RowSetMetaData object from scratch?

934


What are the different types of lockings in jdbc?

853


What is metadata in programming?

941


Differentiate between type_scroll_insensitive and type_scroll_sensitive.

883


What are four types of JDBC driver?

1051


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

825


What is jdbc resultsetmetadata interface?

912


How to check jdbc driver version in websphere?

1014


What are the functions of the jdbc connection interface?

921


What is an advantage of using the jdbc connection pool?

822


Explain the role of driver in jdbc.

939


What is a statement in java?

852