OCI-Lob::erase

(PHP 5, PHP 7, PECL OCI8 >= 1.1.0)
Erases a specified portion of the internal LOB data
int OCI-Lob::erase ([ int $offset [, int $length ]] )

Erases a specified portion of the internal LOB data starting at a specified offset. If called without parameters, it erases all LOB data.

For BLOBs, erasing means that the existing LOB value is overwritten with zero-bytes. For CLOBs, the existing LOB value is overwritten with spaces.

Parameters:
offset

Erases a specified portion of the internal LOB data starting at a specified offset. If called without parameters, it erases all LOB data.

For BLOBs, erasing means that the existing LOB value is overwritten with zero-bytes. For CLOBs, the existing LOB value is overwritten with spaces.

length

Erases a specified portion of the internal LOB data starting at a specified offset. If called without parameters, it erases all LOB data.

For BLOBs, erasing means that the existing LOB value is overwritten with zero-bytes. For CLOBs, the existing LOB value is overwritten with spaces.

Returns:

Returns the actual number of characters/bytes erased or FALSE on failure.

See also:

OCI-Lob::truncate - Lob::truncate

doc_php
2016-02-24 16:17:55
Comments
Leave a Comment

Please login to continue.