<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.pgsql.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'function.pg-put-copy-end.php',
    1 => 'pg_put_copy_end',
    2 => 'Signal the completion of a COPY operation to the server',
  ),
  'up' => 
  array (
    0 => 'ref.pgsql.php',
    1 => 'PostgreSQL 函数',
  ),
  'prev' => 
  array (
    0 => 'function.pg-put-copy-data.php',
    1 => 'pg_put_copy_data',
  ),
  'next' => 
  array (
    0 => 'function.pg-put-line.php',
    1 => 'pg_put_line',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/pgsql/functions/pg-put-copy-end.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.pg-put-copy-end" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">pg_put_copy_end</h1>
  <p class="verinfo">(PHP 8 &gt;= 8.4.0)</p><p class="refpurpose"><span class="refname">pg_put_copy_end</span> &mdash; <span class="dc-title">Signal the completion of a COPY operation to the server</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.pg-put-copy-end-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">function</span> <span class="methodname"><strong>pg_put_copy_end</strong></span>(<span class="methodparam"><span class="type"><a href="class.pgsql-connection.php" class="type PgSql\Connection">PgSql\Connection</a></span> <code class="parameter">$connection</code></span>, <span class="methodparam"><span class="type"><span class="type"><a href="language.types.null.php" class="type null">?</a></span><span class="type"><a href="language.types.string.php" class="type string">string</a></span></span> <code class="parameter">$error</code><span class="initializer"> = <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong></span></span>): <span class="type"><a href="language.types.integer.php" class="type int">int</a></span></div>

  <p class="simpara">
   Sends an end-of-data indication to the server during a
   <code class="literal">COPY FROM STDIN</code> operation.
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.pg-put-copy-end-parameters">
  <h3 class="title">参数</h3>
  <dl>
   
    <dt><code class="parameter">connection</code></dt>
    <dd>
     <span class="simpara"><span class="classname"><a href="class.pgsql-connection.php" class="classname">PgSql\Connection</a></span> 实例。</span>
    </dd>
   
   
    <dt><code class="parameter">error</code></dt>
    <dd>
     <span class="simpara">
      If not <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong>, the <code class="literal">COPY</code> operation is forced to
      fail with the given error message.
     </span>
    </dd>
   
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.pg-put-copy-end-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="simpara">
   Returns <code class="literal">1</code> on success, <code class="literal">0</code> if the
   data could not be queued (only in non-blocking mode), or
   <code class="literal">-1</code> on error.
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.pg-put-copy-end-seealso">
  <h3 class="title">参见</h3>
  <ul class="simplelist">
   <li><span class="function"><a href="function.pg-put-copy-data.php" class="function" rel="rdfs-seeAlso">pg_put_copy_data()</a> - Send data to the server during a COPY operation</span></li>
   <li><span class="function"><a href="function.pg-query.php" class="function" rel="rdfs-seeAlso">pg_query()</a> - 执行查询</span></li>
  </ul>
 </div>


</div><?php manual_footer($setup); ?>