略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: OCI-Lob::save

2024-12-27

OCI-Lob::save

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

OCI-Lob::saveSaves data to the large object

说明

OCI-Lob::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

add a note add a note

User Contributed Notes 2 notes

up
-3
Anonymous
13 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
-8
Michael Krug
5 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);

官方地址:https://www.php.net/manual/en/oci-lob.save.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3