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

Describe how the jdbc application works.

536


What is an escape syntax?

541


What is difference between odbc and jdbc?

516


Can we return resultset in java?

484


What is jdbc odbc?

526






How the JDBC application works?

543


Write an sql to find all records having all numeric characters in a field ?

501


Which package contains jdbc api?

555


Is jdbc faster than odbc?

515


What are the differences between execute, executequery, and executeupdate?

501


What is statement and preparedstatement in java?

505


How do I retrieve a whole row of data at once, instead of calling an individual ResultSet.getXXX method for each column?

607


What is JDBC Driver interface?

588


State the three different ways in which you can create a table?

526


Which Java and java.sql data types map to my specific database types?

550