Freigeben über


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

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

public void updateCharacterStream(int index,
                                  java.io.Reader x,
                                  int length)

Parameter

index

An int that indicates the column index.

x

A Reader object.

length

An int that indicates the length of the stream.

Ausnahmen

SQLServerException

Hinweise

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.

Siehe auch

Verweis

SQLServerResultSet Class

Konzepte

updateCharacterStream Method (SQLServerResultSet)
SQLServerResultSet Methods
SQLServerResultSet Members