共用方式為


setString Method (long, java.lang.String)

Writes the given String to the CLOB starting at the given position.

public int setString(long pos,
                     java.lang.String s)

參數

pos

The position at which to start writing to the CLOB.

s

The String to be written to the CLOB.

傳回值

The number of characters written.

例外狀況

java.sql.SQLException

備註

This setString method is specified by the setString method in the java.sql.Clob interface.

Character data is overwritten starting at the specified position and can over-run the initial length of the CLOB. Specifying a position+1 value will append the string. Specifying a position+2 or greater (or zero or less) values will cause a position error to be thrown.

另請參閱

參考

SQLServerClob Class

概念

setString Method (SQLServerClob)
SQLServerClob Methods
SQLServerClob Members