ResultSetMetaData Interface in Java

The metadata implies information about information i.e. we can get additional data from the information. In the event that you need to get metadata of a table like aggregate number of segment, section name, segment sort and so on , ResultSetMetaData interface is helpful in light of the fact that it gives techniques to get metadata from the ResultSet object. Ordinarily utilized strategies for ResultSetMetaData interface

  • public int getColumnCount()throws SQLException; it gives back the aggregate number of sections in the ResultSet object.
  • public String getColumnName(int index)throws SQLException it gives back the section name of the predetermined segment record.
  • public String getColumnTypeName(int index)throws SQLException it gives back the section sort name for the predetermined index

hire-me