1 | initial version |
The methods to get the column name and column label in JDBC for DB2 are:
For column name:
String columnName = resultSet.getMetaData().getColumnName(columnIndex);
For column label:
String columnLabel = resultSet.getMetaData().getColumnLabel(columnIndex);
Note that both getColumnName and getColumnLabel methods are supported in DB2 through JDBC.