Open Source RDBMS - Seamless, Scalable, Stable and Free

한국어 | Login |Register

Versions available for this page: CUBRID 8.4.0 |  CUBRID 8.4.1 | 



cubrid_lob_size

Description

The cubrid_lob_size function returns the size of BLOB/CLOB data. The maximum size of BLOB/CLOB data is the same as the maximum file size in an external storage. LOB type size of CUBRID PHP is 64-bit integer but 64-bit integer cannot be returned in PHP. Therefore, string is returned instead.

Syntax

bool cubrid_lob_size(resource $lob_identifier )

  • lob_identifier : LOB identifier
Return Value
  • Success : LOB data size string
  • Failure : FALSE
Example

<?php

$lobs = cubrid_lob_get($con, "SELECT doc_content FROM doc WHERE doc_id=5");

echo "Doc size:".cubrid_lob_size($lobs[0]);

cubrid_lob_export($conn, $lobs[0], "doc_5.txt");

cubrid_lob_close($lobs);

?>

See Also