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

Differentiate between type_scroll_insensitive and type_scroll_sensitive.

0 Answers  


Diff bet.. Function and Trigger?

3 Answers   Logica CMG,


what is the current version of JDBC? and explain its features?

3 Answers  


r u used any design patterns in your project?

3 Answers   Wipro,


Differentiate between a statement and a preparedstatement.

0 Answers  






What isolation level is used by the DBMS when inserting, updating and selecting rows from a database?

0 Answers  


What is the feature of jdbc v4?

0 Answers  


What are the flow statements of jdbc?

0 Answers  


What are the different types of modifiers?

2 Answers  


What is a Connection?

1 Answers  


What is jdbc driver for sql server?

0 Answers  


What are statements in JAVA ?

1 Answers   CTS,


Categories