共用方式為


getCharacterStream Method (int)

Retrieves the value of the designated column index in the current row of this SQLServerResultSet object as a java.io.Reader object.

public java.io.Reader getCharacterStream(int columnIndex)

參數

columnIndex

An int that indicates the column index.

傳回值

A Reader object.

例外狀況

SQLServerException

備註

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

This method will read only SQL Server Unicode character data types such as nchar, nvarchar, nvarchar(max), and ntext. All other data types, including the ASCII character types, will cause an exception to be thrown. To read the ASCII data types, use the getAsciiStream method.

另請參閱

參考

SQLServerResultSet Class

概念

getCharacterStream Method (SQLServerResultSet)
SQLServerResultSet Methods
SQLServerResultSet Members