略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: cubrid_lob_size

2024-11-14

cubrid_lob_size

(PECL CUBRID >= 8.3.1)

cubrid_lob_sizeGet BLOB/CLOB data size

说明

cubrid_lob_size(resource $lob_identifier): string

cubrid_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);
?>

参见

add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/function.cubrid-lob-size.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3