共用方式為


updateCharacterStream Method (java.lang.String, java.io.Reader, int)

Updates the designated column with a character stream value given the column name and length.

public void updateCharacterStream(java.lang.String columnName,
                                  java.io.Reader reader,
                                  int length)

參數

columnName

A String that contains the column name.

reader

A Reader object.

length

An int that indicates the length of the stream.

例外狀況

SQLServerException

備註

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

This method passes Unicode characters from a Reader object to selected text and binary columns. This includes all text columns and binary, varbinary, varbinary(max), image, and xml columns, but not udt columns. When the length is set to -1, the 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.

另請參閱

參考

SQLServerResultSet Class

概念

updateCharacterStream Method (SQLServerResultSet)
SQLServerResultSet Methods
SQLServerResultSet Members