How to find number of records in result set?

Answers were Sorted based on User's Feedback



How to find number of records in result set?..

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

How to find number of records in result set?..

Answer / balakrishna

Using ResultSet MetaData class

Is This Answer Correct ?    0 Yes 3 No

Post New Answer

More JDBC Interview Questions

What does executequery return in java?

0 Answers  


Explain the two tier and three tier architecture of jdbc.

0 Answers  


What are the different types of locking in JDBC?

0 Answers  


JDBC Drivers properties?

1 Answers   Infosys,


How to insert and delete a row programmatically? (new feature in JDBC 2.0)

0 Answers  






How do we call a stored procedure from jdbc?

0 Answers  


The new features of the JDBC 2.0 API, will be supported for JDBC-ODBC Bridge?

0 Answers  


wahts is mean by primary key and unique key?

7 Answers   Wipro,


Can resultset be null in java?

0 Answers  


What are the different types of classes in the api component?

0 Answers  


What is Type-4 Driver and when this driver is used?

3 Answers  


How to make updates to updatable result sets in jdbc?

0 Answers  


Categories