共用方式為


getFloat Method (java.lang.String) (SQLServerResultSet)

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

public float getFloat(java.lang.String columnName)

參數

columnName

A String that contains the column name.

傳回值

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