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 is connection pooling?

6 Answers   Wipro,


how do we get the connection from connection pool

1 Answers  


What are the different types of drivers under jdbc?

0 Answers  


can we define indexes on a foreign key? Explain pros and cons?

1 Answers  


What does the jdbc resultset interface?

0 Answers  






wa is connection pooling? how do u create connection pooling?wat is use connection pooling?

1 Answers   Covansys,


What are the different types of locking in JDBC?

0 Answers  


What does connection pooling mean ?

0 Answers  


How to test jdbc connection to sql server?

0 Answers  


Is jdbc an api?

0 Answers  


How we say that PreparedStatment is Precompiled? where it will be compiled?

4 Answers   Logica CMG,


What are the exceptions in jdbc?

0 Answers  


Categories