<?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 => 'tr',
  ),
  'this' => 
  array (
    0 => 'function.pg-affected-rows.php',
    1 => 'pg_affected_rows',
    2 => 'Returns number of affected records (tuples)',
  ),
  'up' => 
  array (
    0 => 'ref.pgsql.php',
    1 => 'PostgreSQL İşlevleri',
  ),
  'prev' => 
  array (
    0 => 'ref.pgsql.php',
    1 => 'PostgreSQL İşlevleri',
  ),
  'next' => 
  array (
    0 => 'function.pg-cancel-query.php',
    1 => 'pg_cancel_query',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/pgsql/functions/pg-affected-rows.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.pg-affected-rows" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">pg_affected_rows</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.2.0, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">pg_affected_rows</span> &mdash; <span class="dc-title">Returns number of affected records (tuples)</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-function.pg-affected-rows-description">
  <h3 class="title">Açıklama</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>pg_affected_rows</strong></span>(<span class="methodparam"><span class="type"><a href="class.pgsql-result.php" class="type PgSql\Result">PgSql\Result</a></span> <code class="parameter">$result</code></span>): <span class="type"><a href="language.types.integer.php" class="type int">int</a></span></div>

  <p class="para rdfs-comment">
   <span class="function"><strong>pg_affected_rows()</strong></span> returns the number of tuples
   (instances/records/rows) affected by <code class="literal">INSERT</code>, 
   <code class="literal">UPDATE</code>, and <code class="literal">DELETE</code>
   queries. 
  </p>
  <p class="para">
   The server also returns the number of SELECTed rows.
  </p>
  <blockquote class="note"><p><strong class="note">Bilginize</strong>: 
   <p class="para">
    This function used to be called <span class="function"><strong>pg_cmdtuples()</strong></span>.
   </p>
  </p></blockquote>
 </div>


<div class="refsect1 parameters" id="refsect1-function.pg-affected-rows-parameters">
  <h3 class="title">Bağımsız Değişkenler</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">result</code></dt>
     <dd>
      <p class="para">
<span class="function"><a href="function.pg-query.php" class="function">pg_query()</a></span>, <span class="function"><a href="function.pg-query-params.php" class="function">pg_query_params()</a></span> veya
<span class="function"><a href="function.pg-execute.php" class="function">pg_execute()</a></span> işlevinden dönen
<span class="classname"><a href="class.pgsql-result.php" class="classname">PgSql\Result</a></span> nesnesi.</p>
     </dd>
    
   </dl>
  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.pg-affected-rows-returnvalues">
  <h3 class="title">Dönen Değerler</h3>
  <p class="para">
   The number of rows affected by the query. If no tuple is
   affected, it will return <code class="literal">0</code>.
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.pg-affected-rows-changelog">
  <h3 class="title">Sürüm Bilgisi</h3>
  <table class="doctable informaltable">
   
    <thead>
     <tr>
      <th>Sürüm: </th>
      <th>Açıklama</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr>
 <td>8.1.0</td>
 <td>
  <code class="parameter">sonuç</code> bağımsız değişkeni artık
  <span class="classname"><a href="class.pgsql-result.php" class="classname">PgSql\Result</a></span> nesnesi kabul ediyor, evvelce bir
  özkaynak kabul ederdi.
 </td>
</tr>

    </tbody>
   
  </table>

 </div>

 
 <div class="refsect1 examples" id="refsect1-function.pg-affected-rows-examples">
  <h3 class="title">Örnekler</h3>
  <p class="para">
   <div class="example" id="example-1">
    <p><strong>Örnek 1 <span class="function"><strong>pg_affected_rows()</strong></span> example</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$result </span><span style="color: #007700">= </span><span style="color: #0000BB">pg_query</span><span style="color: #007700">(</span><span style="color: #0000BB">$conn</span><span style="color: #007700">, </span><span style="color: #DD0000">"INSERT INTO authors VALUES ('Orwell', 2002, 'Animal Farm')"</span><span style="color: #007700">);<br /><br /></span><span style="color: #0000BB">$cmdtuples </span><span style="color: #007700">= </span><span style="color: #0000BB">pg_affected_rows</span><span style="color: #007700">(</span><span style="color: #0000BB">$result</span><span style="color: #007700">);<br /><br />echo </span><span style="color: #0000BB">$cmdtuples </span><span style="color: #007700">. </span><span style="color: #DD0000">" tuples are affected.\n"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
    </div>

    <div class="example-contents"><p>
Yukarıdaki örneğin çıktısı:</p></div>
    <div class="example-contents screen">
<div class="examplescode"><pre class="examplescode">1 tuples are affected.</pre>
</div>
    </div>
   </div>
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.pg-affected-rows-seealso">
  <h3 class="title">Ayrıca Bakınız</h3>
  <p class="para">
   <ul class="simplelist">
    <li><span class="function"><a href="function.pg-query.php" class="function" rel="rdfs-seeAlso">pg_query()</a> - Execute a query</span></li>
    <li><span class="function"><a href="function.pg-query-params.php" class="function" rel="rdfs-seeAlso">pg_query_params()</a> - Submits a command to the server and waits for the result, with the ability to pass parameters separately from the SQL command text</span></li>
    <li><span class="function"><a href="function.pg-execute.php" class="function" rel="rdfs-seeAlso">pg_execute()</a> - Sends a request to execute a prepared statement with given parameters, and waits for the result</span></li>
    <li><span class="function"><a href="function.pg-num-rows.php" class="function" rel="rdfs-seeAlso">pg_num_rows()</a> - Returns the number of rows in a result</span></li>
   </ul>
  </p>
 </div>

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