PHPerKaigi 2021

OCILob::save

(PHP 5, PHP 7, PHP 8, PECL OCI8 >= 1.1.0)

OCILob::saveSaves data to the large object

说明

OCILob::save ( string $data , int $offset = ? ) : bool

Saves data to the large object.

参数

data

The data to be saved.

offset

Can be used to indicate offset from the beginning of the large object.

返回值

成功时返回 true, 或者在失败时返回 false

更新日志

版本 说明
8.0.0, PECL OCI8 3.0.0 The OCI-Lob class was renamed to OCILob to align with PHP naming standards.
add a note add a note

User Contributed Notes 2 notes

up
-7
Anonymous
14 years ago
If you are using Save() on an update statement, PHP will throw a warning similar to "OCILobWrite: OCI_INVALID_HANDLE..." if your update statement did not catch any rows with its where clause.
up
-10
Michael Krug
7 years ago
When you get "OCI-Lob::save(): OCI_INVALID_HANDLE in ..." try
oci_execute($stid, OCI_NO_AUTO_COMMIT);
$clob->save($data);
oci_commit($conn);
To Top