<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.ibm-db2.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'tr',
  ),
  'this' => 
  array (
    0 => 'function.db2-num-rows.php',
    1 => 'db2_num_rows',
    2 => 'Returns the number of rows affected by an SQL statement',
  ),
  'up' => 
  array (
    0 => 'ref.ibm-db2.php',
    1 => 'IBM DB2 İşlevleri',
  ),
  'prev' => 
  array (
    0 => 'function.db2-num-fields.php',
    1 => 'db2_num_fields',
  ),
  'next' => 
  array (
    0 => 'function.db2-pclose.php',
    1 => 'db2_pclose',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/ibm_db2/functions/db2-num-rows.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.db2-num-rows" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">db2_num_rows</h1>
  <p class="verinfo">(PECL ibm_db2 &gt;= 1.0.0)</p><p class="refpurpose"><span class="refname">db2_num_rows</span> &mdash; <span class="dc-title">
   Returns the number of rows affected by an SQL statement
  </span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.db2-num-rows-description">
  <h3 class="title">Açıklama</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>db2_num_rows</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> <code class="parameter">$stmt</code></span>): <span class="type"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span>|<span class="type"><a href="language.types.singleton.php" class="type false">false</a></span></span></div>



  <p class="simpara">
   Returns the number of rows deleted, inserted, or updated by an SQL
   statement.
  </p>
  <p class="simpara">
   To determine the number of rows that will be returned by a SELECT
   statement, issue SELECT COUNT(*) with the same predicates as your
   intended SELECT statement and retrieve the value.
  </p>
  <p class="simpara">
   If your application logic checks the number of rows returned by a SELECT
   statement and branches if the number of rows is 0, consider modifying your
   application to attempt to return the first row with one of
   <span class="function"><a href="function.db2-fetch-assoc.php" class="function">db2_fetch_assoc()</a></span>, <span class="function"><a href="function.db2-fetch-both.php" class="function">db2_fetch_both()</a></span>,
   <span class="function"><a href="function.db2-fetch-array.php" class="function">db2_fetch_array()</a></span>, or <span class="function"><a href="function.db2-fetch-row.php" class="function">db2_fetch_row()</a></span>,
   and branch if the fetch function returns <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong>.
  </p>

  <blockquote class="note"><p><strong class="note">Bilginize</strong>: 
   <span class="simpara">
    If you issue a SELECT statement using a scrollable cursor,
    <span class="function"><strong>db2_num_rows()</strong></span> returns the number of rows returned by
    the SELECT statement. However, the overhead associated with scrollable
    cursors significantly degrades the performance of your application, so if
    this is the only reason you are considering using scrollable cursors,
    you should use a forward-only cursor and either call SELECT COUNT(*) or
    rely on the <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span> return value of the fetch functions to
    achieve the equivalent functionality with much better performance.
   </span>
  </p></blockquote>

 </div>

 <div class="refsect1 parameters" id="refsect1-function.db2-num-rows-parameters">
  <h3 class="title">Bağımsız Değişkenler</h3>
  <dl>
   
    <dt><code class="parameter">stmt</code></dt>
    <dd>
     <span class="simpara">
      A valid <code class="literal">stmt</code> resource containing a result set.
     </span>
    </dd>
   
  </dl>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.db2-num-rows-returnvalues">
  <h3 class="title">Dönen Değerler</h3>
  <p class="simpara">
   Returns the number of rows affected by the last SQL statement issued by
   the specified statement handle, başarısızlık durumunda <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> döner
  </p>
 </div>


 


 


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