How to find number of records in result set?

Answer Posted / devarathnam c,kotagudibanda(po

Hi...You can use one separate query for that purpose
i.e String query ="select count(*) from emp";
It will give u total no.of records in ResultSet.

Is This Answer Correct ?    2 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain about the Try Block?

555


What is jdbc odbc connection?

502


What are the different types of resultset?

548


What's the benefit for specifying constraints like not null, primary key explicitly instead of specifying it against the column ?

474


What is connection commit?

497






What is the full form of jdbc and what is its purpose?

541


Which is better jpa or jdbc?

502


What is odbc jdbc?

535


What is jdbc odbc?

516


What is the use of dialect?

564


Describe odbc?

556


Result set’s index starts with 0 or 1?

551


Is oracle client required for jdbc connection?

493


What is xe in oracle jdbc url?

536


How do I insert/update records with some of the columns having NULL value?

510