Home > PHP > Function > OCI8 > OCI-Lob->truncate()

OCI-Lob->truncate()

OCI-Lob->truncate - Truncates large object

Syntax

bool OCI-Lob->truncate (int $length)

Arguments

  • length - If provided, this method will truncate the LOB to length bytes. Otherwise, it will completrely purge the LOB.

Description

Truncates the LOB.

Version

PHP 5, PECL OCI8 >= 1.1.0

Return value

Returns TRUE on success or FALSE on failure.