共用方式為


updateObject Method (java.lang.String, java.lang.Object, int)

Updates the designated column with an Object value given the column name and scale.

public void updateObject(java.lang.String columnName,
                         java.lang.Object x,
                         int scale)

參數

columnName

A String that contains the column name.

obj

An Object value.

scale

For java.sql.Types.DECIMAL or java.sql.Types.NUMERIC types, this is the number of digits after the decimal point. For all other types this value is ignored.

例外狀況

SQLServerException

備註

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

另請參閱

參考

SQLServerResultSet Class

概念

updateObject Method (SQLServerResultSet)
SQLServerResultSet Methods
SQLServerResultSet Members