| title | getColumnLabel Method (SQLServerResultSetMetaData) |
|---|---|
| description | getColumnLabel Method (SQLServerResultSetMetaData) |
| author | David-Engel |
| ms.author | davidengel |
| ms.date | 01/19/2017 |
| ms.service | sql |
| ms.subservice | connectivity |
| ms.topic | reference |
| apilocation | sqljdbc.jar |
| apiname | SQLServerResultSetMetaData.getColumnLabel |
| apitype | Assembly |
[!INCLUDEDriver_JDBC_Download]
Gets the suggested title, for use in printouts and displays, of the designated column.
public java.lang.String getColumnLabel(int column)
column
An int that indicates the column index.
A String that contains the title of the column.
This getColumnLabel method is specified by the getColumnLabel method in the java.sql.ResultSetMetaData interface.
This method returns the alias name of the column. If that is not available, this method returns the column name.
SQLServerResultSetMetaData Methods
SQLServerResultSetMetaData Members
SQLServerResultSetMetaData Class