共用方式為


getColumnLabel Method (SQLServerResultSetMetaData)

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.

例外狀況

SQLServerException

備註

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 Class

概念

SQLServerResultSetMetaData Methods
SQLServerResultSetMetaData Members