Ask Question
15 August, 14:10

What information may be obtained from a ResultSetMetaData object? (TCOs 1-6) What information may be obtained from a ResultSetMetaData object?

Number of columns in the result set

Database URL and product name

Number of rows in the result set

JDBC driver name and version

+5
Answers (1)
  1. 15 August, 16:43
    0
    The correct answer for the given question is " Number of columns in the result set".

    Explanation:

    In java the ResultSetMetaData is an interface which is used to getting metadata.

    The ResultSetMetaData getting the metadata of a table like number of column, total column etc.

    Their are following method of ResultSetMetaData interface

    int getColumnCount () : it return total number of column in ResultSet object.

    String getColumnName (int index) : returns the column name

    For example

    ResultSet r;

    ResultSetMetaData sm=r. getMetaData (); / / where r is ResultSet

    sm. getColumnCount ()); : It return total column in table

    sm. getColumnName (1)) : it return the column name.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “What information may be obtained from a ResultSetMetaData object? (TCOs 1-6) What information may be obtained from a ResultSetMetaData ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers