다음을 통해 공유


setCharacterStream Method (SQLServerPreparedStatement)

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

public final void setCharacterStream(int n,
                                     java.io.Reader reader,
                                     int length)

매개 변수

n

An int that indicates the parameter number.

reader

A Reader object.

length

The number of characters.

예외

SQLServerException

주의

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

When the length 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.

참고 항목

참조

SQLServerPreparedStatement Class

개념

SQLServerPreparedStatement Methods
SQLServerPreparedStatement Members