uTools-Manuals/docs/php/cubrid_lob_size.html
2019-04-28 19:00:34 +08:00

116 lines
5.0 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title>Get BLOB/CLOB data size</title>
</head>
<body class="docs"><div id="layout">
<div id="layout-content"><div id="function.cubrid-lob-size" class="refentry">
<div class="refnamediv">
<h1 class="refname">cubrid_lob_size</h1>
<p class="verinfo">(PECL CUBRID &gt;= 8.3.1)</p><p class="refpurpose"><span class="refname">cubrid_lob_size</span> &mdash; <span class="dc-title">Get BLOB/CLOB data size</span></p>
</div>
<div class="refsect1 description" id="refsect1-function.cubrid-lob-size-description">
<h3 class="title">说明</h3>
<div class="methodsynopsis dc-description">
<span class="methodname"><strong>cubrid_lob_size</strong></span>
( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$lob_identifier</code></span>
) : <span class="type">string</span></div>
<p class="para rdfs-comment">
<span class="function"><strong>cubrid_lob_size()</strong></span> is used to get BLOB/CLOB data size.
</p>
</div>
<div class="refsect1 parameters" id="refsect1-function.cubrid-lob-size-parameters">
<h3 class="title">参数</h3>
<p class="para">
<dl>
<dt>
<code class="parameter">lob_identifier</code></dt>
<dd>
<p class="para">LOB identifier.</p></dd>
</dl>
</p>
</div>
<div class="refsect1 returnvalues" id="refsect1-function.cubrid-lob-size-returnvalues">
<h3 class="title">返回值</h3>
<p class="para">
A string representing LOB data size, when process is successful.
</p>
<p class="para">
<strong><code>FALSE</code></strong>, when process is unsuccessful.
</p>
</div>
<div class="refsect1 changelog" id="refsect1-function.cubrid-lob-size-changelog">
<h3 class="title">更新日志</h3>
<p class="para">
<table class="doctable informaltable">
<thead>
<tr>
<th>版本</th>
<th>说明</th>
</tr>
</thead>
<tbody class="tbody">
<tr>
<td>8.4.0</td>
<td>
Change return value type from int to string.
</td>
</tr>
</tbody>
</table>
</p>
</div>
<div class="refsect1 examples" id="refsect1-function.cubrid-lob-size-examples">
<h3 class="title">范例</h3>
<div class="example" id="example-1123">
<p><strong>Example #1 <span class="function"><strong>cubrid_lob_size()</strong></span> example</strong></p>
<div class="example-contents">
<div class="phpcode"><pre><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br />$lobs&nbsp;</span><span style="color: #007700">=&nbsp;</span><span style="color: #0000BB">cubrid_lob_get</span><span style="color: #007700">(</span><span style="color: #0000BB">$con</span><span style="color: #007700">,&nbsp;</span><span style="color: #DD0000">"SELECT&nbsp;doc_content&nbsp;FROM&nbsp;doc&nbsp;WHERE&nbsp;doc_id=5"</span><span style="color: #007700">);<br />echo&nbsp;</span><span style="color: #DD0000">"Doc&nbsp;size:"</span><span style="color: #007700">.</span><span style="color: #0000BB">cubrid_lob_size</span><span style="color: #007700">(</span><span style="color: #0000BB">$lobs</span><span style="color: #007700">[</span><span style="color: #0000BB">0</span><span style="color: #007700">]);<br /></span><span style="color: #0000BB">cubrid_lob_export</span><span style="color: #007700">(</span><span style="color: #0000BB">$conn</span><span style="color: #007700">,&nbsp;</span><span style="color: #0000BB">$lobs</span><span style="color: #007700">[</span><span style="color: #0000BB">0</span><span style="color: #007700">],&nbsp;</span><span style="color: #DD0000">"doc_5.txt"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">cubrid_lob_close</span><span style="color: #007700">(</span><span style="color: #0000BB">$lobs</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</pre></div>
</div>
</div>
</div>
<div class="refsect1 seealso" id="refsect1-function.cubrid-lob-size-seealso">
<h3 class="title">参见</h3>
<p class="para">
<ul class="simplelist">
<li class="member"><span class="function"><a href="cubrid_lob_get.html" class="function" rel="rdfs-seeAlso">cubrid_lob_get()</a> - Get BLOB/CLOB data</span></li>
<li class="member"><span class="function"><a href="cubrid_lob_close.html" class="function" rel="rdfs-seeAlso">cubrid_lob_close()</a> - Close BLOB/CLOB data</span></li>
<li class="member"><span class="function"><a href="cubrid_lob_export.html" class="function" rel="rdfs-seeAlso">cubrid_lob_export()</a> - Export BLOB/CLOB data to file</span></li>
<li class="member"><span class="function"><a href="cubrid_lob_send.html" class="function" rel="rdfs-seeAlso">cubrid_lob_send()</a> - Read BLOB/CLOB data and send straight to browser</span></li>
</ul>
</p>
</div>
</div></div></div></body></html>