findColumn(String columnLabel)

Syntax:

int findColumn(String columnLabel)
               throws SQLException

Description:

Maps the given ResultSet column label to its ResultSet column index.

Parameters:

columnLabel

the label for the column specified with the SQL AS clause. If the SQL AS clause was not specified, then the label is the name of the column

Returns:

the column index of the given column name

Throws:

SQLException - if a database access error occurs, columnLabel is not a valid column label, or this method is called on a closed result set.

Reference:

For more information, reference JDBC documentation for: ResultSet.findColumn(String)