mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-06-18 13:57:03 +08:00
73 lines
3.8 KiB
HTML
73 lines
3.8 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>Send data in blocks</title>
|
||
</head>
|
||
<body class="docs"><div id="layout">
|
||
<div id="layout-content"><div id="function.maxdb-stmt-send-long-data" class="refentry">
|
||
<div class="refnamediv">
|
||
<h1 class="refname">maxdb_stmt_send_long_data</h1>
|
||
<h1 class="refname">maxdb_stmt::send_long_data</h1>
|
||
<p class="verinfo">(PECL maxdb 1.0)</p><p class="refpurpose"><span class="refname">maxdb_stmt_send_long_data</span> -- <span class="refname">maxdb_stmt::send_long_data</span> — <span class="dc-title">Send data in blocks</span></p>
|
||
|
||
</div>
|
||
|
||
<div class="refsect1 description" id="refsect1-function.maxdb-stmt-send-long-data-description">
|
||
<h3 class="title">说明</h3>
|
||
<p class="para">过程化风格</p>
|
||
<div class="methodsynopsis dc-description">
|
||
<span class="methodname"><strong>maxdb_stmt_send_long_data</strong></span>
|
||
( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$stmt</code></span>
|
||
, <span class="methodparam"><span class="type">int</span> <code class="parameter">$param_nr</code></span>
|
||
, <span class="methodparam"><span class="type">string</span> <code class="parameter">$data</code></span>
|
||
) : <span class="type">bool</span></div>
|
||
|
||
<p class="para rdfs-comment">面向对象风格</p>
|
||
<div class="methodsynopsis dc-description">
|
||
<span class="methodname"><strong>maxdb_stmt::stmt_send_long_data</strong></span>
|
||
( <span class="methodparam"><span class="type">int</span> <code class="parameter">$param_nr</code></span>
|
||
, <span class="methodparam"><span class="type">string</span> <code class="parameter">$data</code></span>
|
||
) : <span class="type">bool</span></div>
|
||
|
||
<p class="para rdfs-comment">
|
||
Allows to send parameter data to the server in pieces (or chunks).
|
||
This function can be called multiple times to send the parts of a character or
|
||
binary data value for a column, which must be one of the TEXT or BLOB datatypes.
|
||
</p>
|
||
<p class="para">
|
||
<code class="parameter">param_nr</code> indicates which parameter to associate the data with.
|
||
Parameters are numbered beginning with 0.
|
||
<code class="parameter">data</code> is a string containing data to be sent.
|
||
</p>
|
||
<blockquote class="note"><p><strong class="note">Note</strong>:
|
||
<p class="para">
|
||
For efficiency reasons, this function should be used after calling
|
||
<span class="function"><a href="maxdb_execute.html" class="function">maxdb_execute()</a></span>. In this case, the data is not stored
|
||
on the client side. The end of the sequence must end with a call
|
||
to <span class="function"><a href="maxdb_stmt_close_long_data.html" class="function">maxdb_stmt_close_long_data()</a></span>.
|
||
</p>
|
||
</p></blockquote>
|
||
</div>
|
||
|
||
|
||
<div class="refsect1 returnvalues" id="refsect1-function.maxdb-stmt-send-long-data-returnvalues">
|
||
<h3 class="title">返回值</h3>
|
||
<p class="para">
|
||
成功时返回 <strong><code>TRUE</code></strong>, 或者在失败时返回 <strong><code>FALSE</code></strong>。
|
||
</p>
|
||
</div>
|
||
|
||
|
||
<div class="refsect1 seealso" id="refsect1-function.maxdb-stmt-send-long-data-seealso">
|
||
<h3 class="title">参见</h3>
|
||
<p class="para">
|
||
<ul class="simplelist">
|
||
<li class="member"><span class="function"><a href="maxdb_prepare.html" class="function" rel="rdfs-seeAlso">maxdb_prepare()</a> - Prepare an SQL statement for execution</span></li>
|
||
<li class="member"><span class="function"><a href="maxdb_stmt_bind_param.html" class="function" rel="rdfs-seeAlso">maxdb_stmt_bind_param()</a> - Binds variables to a prepared statement as parameters</span></li>
|
||
</ul>
|
||
</p>
|
||
</div>
|
||
|
||
|
||
</div></div></div></body></html> |