8.7.7 getColumnName(int column)
- Organization of this subsection
(1) Function
This method acquires a specified column's column name.
(2) Format
public synchronized String getColumnName(int column) throws SQLException
(3) Arguments
- int column
-
Specifies a column number (where the first column is 1).
(4) Return value
The method returns a String object.
This method returns the name of a retrieval result column from the column name information sent from the HADB server. For details about the names of retrieval result columns, see Rules in Specification format and rules for the SELECT statement in the manual HADB SQL Reference.
(5) Exceptions
If the specified column value is 0 or less, or is greater than the number of columns in the table, the JDBC driver throws an SQLException.