The ResultSetMetaData class contains the metadata of a ResultSet method.

The ResultSetMetaData class defines the following methods.

Method

Returns

Description

getColumnCount():number

Number

Returns the number of columns in the selected ResultSet.

getColumnName(number):string

String

Returns the name of the column at position index (starting with one).

getTableName(number):string

String

Returns the table name to which the column belongs.