cubrid_lob_size
(PECL CUBRID >= 8.3.1)
cubrid_lob_size — Get BLOB/CLOB data size
說明
cubrid_lob_size(resource
$lob_identifier
): stringcubrid_lob_size() is used to get BLOB/CLOB data size.
參數
-
lob_identifier
-
LOB identifier.
返回值
A string representing LOB data size, when process is successful, 或者在失敗時返回 false
.
更新日誌
版本 | 說明 |
---|---|
8.4.0 | Change return value type from int to string. |
範例
示例 #1 cubrid_lob_size() 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);
?>
參見
- cubrid_lob_get() - Get BLOB/CLOB data
- cubrid_lob_close() - Close BLOB/CLOB data
- cubrid_lob_export() - Export BLOB/CLOB data to file
- cubrid_lob_send() - Read BLOB/CLOB data and send straight to browser