getColumnName(int column)

Syntax:

String getColumnName(int column)
                     throws SQLException

Description:

Get the designated column's name.

Parameters:

column

the first column is 1, the second is 2, ...

Returns:

column name

Throws:

SQLException - if a database access error occurs, column is less than 1 or greater than the number of columns or the object has been closed.

Reference:

For more information, reference JDBC documentation for: ResultSetMetaData.getColumnName(int)