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

How many ways can you update a result set?

654


How can we execute stored procedures using callablestatement?

555


Jdbc-odbc bridge is multi-threaded or not?

618


How can you retrieve data from the resultset using jdbc?

631


What does the jdbc databasemetadata interface?

606






Is oracle client required for jdbc connection?

582


Which interface is responsible for transaction management in jdbc?

535


Why we use jdbc instead of odbc?

591


What is in term of jdbc a datasource?

566


What is a rollback in jdbc?

603


What is preparedstatement in jdbc?

596


What is jdbc driver manager?

571


Differentiate between type_scroll_insensitive and type_scroll_sensitive.

605


How many types of jdbc drivers are there?

634


What are the advantages of using preparedstatement over statement?

632