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

the is a syntax in sql 'limit'....using this u can get
desired number of rows...

suppose database having 1000 rows..

query will be:

select * from table limit 100;

first 100 rcds will be selected...

Is This Answer Correct ?    2 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Why do we need jdbc driver?

891


What is the difference between setmaxrows(int) and setfetchsize(int)?

1059


How do I insert an image file (or other raw data) into a database?

969


Explain about multiple implementations and drive manager?

1048


What are the jdbc api components?

1146


How can we set null value in jdbc preparedstatement?

966


What does jdbc do?

1040


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

1036


What is transaction processing in jdbc?

1011


What is phantom read and which isolation level prevents it?

1107


What is SQL Warning? How to retrieve SQL warnings in the JDBC program?

1047


What is in terms of jdbc a datasource?

1079


What is the use of callablestatement? Name the method, which is used to prepare a callablestatement.

898


What is a jdbctemplate?

935


What is drivermanager in java?

947