Skip to content

Latest commit

 

History

History
52 lines (39 loc) · 1.62 KB

File metadata and controls

52 lines (39 loc) · 1.62 KB
title getColumnLabel Method (SQLServerResultSetMetaData) | Microsoft Docs
ms.custom
ms.date 01/19/2017
ms.prod sql
ms.prod_service connectivity
ms.reviewer
ms.technology connectivity
ms.topic conceptual
apiname
SQLServerResultSetMetaData.getColumnLabel
apilocation
sqljdbc.jar
apitype Assembly
ms.assetid cf67692c-24aa-49e6-8e88-a47d4e8c021c
author David-Engel
ms.author v-daenge

getColumnLabel Method (SQLServerResultSetMetaData)

[!INCLUDEDriver_JDBC_Download]

Gets the suggested title, for use in printouts and displays, of the designated column.

Syntax

  
public java.lang.String getColumnLabel(int column)  

Parameters

column

An int that indicates the column index.

Return Value

A String that contains the title of the column.

Exceptions

SQLServerException

Remarks

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.

See Also

SQLServerResultSetMetaData Methods
SQLServerResultSetMetaData Members
SQLServerResultSetMetaData Class