基于指定的偏移量和长度,将指定的字符串写入到始于指定位置的 NCLOB。
注意:
从 Microsoft SQL Server JDBC Driver 2.0 版开始引入此功能。
语法
int setString(long pos, java.lang.String str, int offset, int len)
参数
pos
写入 NCLOB 的起始位置;第一个位置为 1。
str
要写入到 NCLOB 的 String。
offset
str 中的偏移量,从这个位置开始读取将要写入的字符。
len
将要写入的字符数。
异常
备注
此 setString 方法由 java.sql.NClob 接口中的 setString 方法指定。