共用方式為


setCharacterStream Method (SQLServerCallableStatement)

Sets the designated parameter to the given Reader object, which is the given number of characters long.

public void setCharacterStream(java.lang.String sCol,
                               java.io.Reader r,
                               int i)

參數

sCol

A String that contains the name of the parameter.

r

A Reader object.

i

An int that indicates the length in number of characters.

例外狀況

SQLServerException

備註

This setCharacterStream method is specified by the setCharacterStream method in the java.sql.CallableStatement interface.

When the length (i) is set to -1, a stream is allowed, but a specific length is not required. If the Reader passes a stream of a different length than what is specified, the JDBC driver will stop the update while it tries to preserve the connection and the current transaction.

另請參閱

參考

SQLServerCallableStatement Class

概念

SQLServerCallableStatement Methods
SQLServerCallableStatement Members