共用方式為


getFloat Method (int) (SQLServerResultSet)

Retrieves the value of the designated column index in the current row of this SQLServerResultSet object as a float in the Java programming language.

public float getFloat(int columnIndex)

參數

columnIndex

An int that indicates the column index.

傳回值

A float value.

例外狀況

SQLServerException

備註

This getFloat method is specified by the getFloat method in the java.sql.ResultSet interface.

This method returns all number-based types with Java float fidelity.

另請參閱

參考

SQLServerResultSet Class

概念

getFloat Method (SQLServerResultSet)
SQLServerResultSet Methods
SQLServerResultSet Members