mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-06-18 05:26:57 +08:00
38 lines
2.2 KiB
HTML
38 lines
2.2 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>向大型对象写入数据</title>
|
||
</head>
|
||
<body class="docs"><div id="layout">
|
||
<div id="layout-content"><div id="function.pg-lo-write" class="refentry">
|
||
<div class="refnamediv">
|
||
<h1 class="refname">pg_lo_write</h1>
|
||
<p class="verinfo">(PHP 4 >= 4.2.0, PHP 5, PHP 7)</p><p class="refpurpose"><span class="refname">pg_lo_write</span> — <span class="dc-title">向大型对象写入数据</span></p>
|
||
|
||
</div>
|
||
<div class="refsect1 unknown-seealsp" id="refsect1-function.pg-lo-write-unknown-seealsp">
|
||
<h3 class="title">说明</h3>
|
||
<div class="methodsynopsis dc-description">
|
||
<span class="methodname"><strong>pg_lo_write</strong></span>
|
||
( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$large_object</code></span>
|
||
, <span class="methodparam"><span class="type">string</span> <code class="parameter">$data</code></span>
|
||
) : <span class="type">int</span></div>
|
||
|
||
<p class="para rdfs-comment">
|
||
<span class="function"><strong>pg_lo_write()</strong></span> 把 <code class="parameter">data</code> 参数中的数据尽可能多地写入大型对象并返回实际写入的字节数。如果出错则返回 <strong><code>FALSE</code></strong>。<code class="parameter">large_object</code> 参数是 <span class="function"><a href="pg_lo_open.html" class="function">pg_lo_open()</a></span> 函数所返回的大型对象资源号。
|
||
</p>
|
||
<p class="para">
|
||
要使用大型对象(lo)接口,需要将其放置在事务块中。
|
||
</p>
|
||
<blockquote class="note"><p><strong class="note">Note</strong>:
|
||
<p class="para">
|
||
本函数以前的名字为 <em>pg_lo_write()</em>。
|
||
</p>
|
||
</p></blockquote>
|
||
<p class="para">
|
||
参见 <span class="function"><a href="pg_lo_create.html" class="function">pg_lo_create()</a></span> 和 <span class="function"><a href="pg_lo_open.html" class="function">pg_lo_open()</a></span>。
|
||
</p>
|
||
</div>
|
||
|
||
</div></div></div></body></html> |