Java ResultSetMetaData InterfaceThe metadata means data about data i.e. we can get further information from the data. If you have to get metadata of a table like total number of column, column name, column type etc. , ResultSetMetaData interface is useful because it provides methods to get metadata from the ResultSet object. Commonly used methods of ResultSetMetaData interface
How to get the object of ResultSetMetaData:
Example of ResultSetMetaData interface :Output:Total columns: 2 Column Name of 1st column: ID Column Type Name of 1st column: NUMBER |
We provides tutorials and interview questions of all technology like java tutorial, android, java frameworks
G-13, 2nd Floor, Sec-3, Noida, UP, 201301, India