OracleLob.Append(OracleLob) 方法

定义

将数据从指定的 LOB 追加到当前 LOBAppends data from the specified LOB to the current LOB.

public:
 void Append(System::Data::OracleClient::OracleLob ^ source);
public void Append (System.Data.OracleClient.OracleLob source);
member this.Append : System.Data.OracleClient.OracleLob -> unit
Public Sub Append (source As OracleLob)

参数

source
OracleLob

要从其中追加数据的 LOBThe LOB from which to append data.

例外

OracleLob 为 null。The source OracleLob is null.

OracleLob 为 null,或者连接已关闭。The source OracleLob is null, or the connection is closed.

OracleLob 对象已关闭或已释放。The source OracleLob object was closed or disposed.

发生了 Oracle 错误。An Oracle error has occurred.

注解

若要写入 LOB ,您必须 LOB 使用 SQL SELECT 语句中的 FOR UPDATE 子句检索到,并且必须已启动本地事务。To write to the LOB, you must have retrieved the LOB using the FOR UPDATE clause in the SQL SELECT statement, and you must have a local transaction started.

源中的所有数据 LOB 都追加到当前的末尾 LOBAll data from the source LOB is appended to the end of the current LOB. LOB 此过程中,不会计算或更改的位置。The position of neither LOB is evaluated or changed during this process.

基础数据类型必须始终相同。The underlying data types must always be the same. 例如,如果要从中追加 NClob ,则目标 OracleLob 也必须是 NClobFor example, if you are appending from an NClob, the destination OracleLob must also be an NClob.

备注

在此版本中,对只读执行的写入操作 LOB 可能会成功,但不会更新 LOB 服务器上的。In this release, a write operation to a read-only LOB might succeed, but does not update the LOB on the server. 但在这种情况下,将更新的本地副本 LOBIn this case, however, the local copy of the LOB is updated. 因此,以后对对象的读取操作 OracleLob 可能会返回写入操作的结果。Therefore, later read operations on the OracleLob object might return the results of the write operation.

适用于