共用方式為


getColumnCount Method (SQLServerResultSetMetaData)

Returns the number of columns in the result set.

public int getColumnCount()

傳回值

An int that indicates the number of columns.

例外狀況

SQLServerException

備註

This getColumnCount method is specified by the getColumnCount method in the java.sql.ResultSetMetaData interface.

另請參閱

參考

SQLServerResultSetMetaData Class

概念

SQLServerResultSetMetaData Methods
SQLServerResultSetMetaData Members