JDBC Metadata
The simple meaning of metadata is data about data. There are two metadata available in the JDBC API - ResultSetMetaData and DatabaseMetaData . ResultSetMetaData It is used to make descriptive information about ResultSet object, like; number of columns, name of columns and dataype of columns. It does not provide any information regarding database and how many rows are available in the ResultSet object. Whether ResultSet is read only, updatable or scrollable. This is useful when you don't have any information about the columns of the table. First we have to create object of ResultSetMetadata by calling getMetaData() method from ResultSet object. Syntax : ResultSetMetaData rsmd=res.getMetaData(); The following are common methods in ResultSetMetadata interfac...