• 首页
  • vue
  • TypeScript
  • JavaScript
  • scss
  • css3
  • html5
  • php
  • MySQL
  • redis
  • jQuery
  • OCI-Lob::save()

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

    Saves data to the large object

    说明

    OCI-Lob::save(string $data[,int $offset]): bool

    Saves$datato 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

    参见

    • OCI-Lob::write
    • OCI-Lob::import
    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.
    When you get "OCI-Lob::save(): OCI_INVALID_HANDLE in ..." try
    oci_execute($stid, OCI_NO_AUTO_COMMIT);
    $clob->save($data);
    oci_commit($conn);