1.

Which of the following function is used to find the column count of the particular resultset?(a) getMetaData()(b) Metadata()(c) getColumn()(d) get Count()This question was addressed to me during an interview.I need to ask this question from Access SQL From a Programming Language in division SQL : Queries, Constraints and Triggers of Database Management

Answer»

The correct choice is (a) getMetaData()

Best explanation: The interface ResultSet

has a method, getMetaData(), that returns a ResultSetMetaData OBJECT that contains METADATA about the result set. ResultSetMetaData, in turn, has methods to FIND metadata information, such as the NUMBER of COLUMNS in the result, the name of a specified column, or the type of a specified column.



Discussion

No Comment Found

Related InterviewSolutions