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 java soft framework?

1063


What is executequery in java?

952


What is getconnection method in java?

982


DB2 Universal claims to support JDBC 2.0, But I can only get JDBC 1.0 functionality. What can I do?

1029


Give steps to connect to the db using jdbc?

1066


What are the differences between stored procedure and functions?

1084


Name the method, which is used to prepare a callablestatement.

961


what is the meaning of following code snippets Class c=class.forName(driverClassName); Driver d=(driver)c.newInstance();

5128


What is batch processing and how to perform batch processing in jdbc?

980


How a database driver can be loaded with jdbc 4.0 / java 6?

997


What is jdbc url for mysql?

1092


Describe odbc?

1022


What is 2 phase commit?

1256


What is the meaning of “dirty read” in the database?

1097


Explain the role of driver in jdbc.

1058