<?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 => 'ja',
  ),
  'this' => 
  array (
    0 => 'function.db2-cursor-type.php',
    1 => 'db2_cursor_type',
    2 => 'ステートメントリソースが使用しているカーソルの型を返す',
  ),
  'up' => 
  array (
    0 => 'ref.ibm-db2.php',
    1 => 'IBM DB2 関数',
  ),
  'prev' => 
  array (
    0 => 'function.db2-connect.php',
    1 => 'db2_connect',
  ),
  'next' => 
  array (
    0 => 'function.db2-escape-string.php',
    1 => 'db2_escape_string',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ja',
    'path' => 'reference/ibm_db2/functions/db2-cursor-type.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.db2-cursor-type" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">db2_cursor_type</h1>
  <p class="verinfo">(PECL ibm_db2 &gt;= 1.0.0)</p><p class="refpurpose"><span class="refname">db2_cursor_type</span> &mdash; <span class="dc-title">
   ステートメントリソースが使用しているカーソルの型を返す
  </span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.db2-cursor-type-description">
  <h3 class="title">説明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>db2_cursor_type</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"><a href="language.types.integer.php" class="type int">int</a></span></div>


  <p class="simpara">
   ステートメントリソースが使用しているカーソルの型を返します。
   使用中のカーソルが前進のみなのかスクロール可能なのかを調べるために、
   これを使用します。
  </p>

 </div>

 <div class="refsect1 parameters" id="refsect1-function.db2-cursor-type-parameters">
  <h3 class="title">パラメータ</h3>
  <dl>
   
    <dt><code class="parameter">stmt</code></dt>
    <dd>
     <span class="simpara">
      有効なステートメントリソース。
     </span>
    </dd>
   
  </dl>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.db2-cursor-type-returnvalues">
  <h3 class="title">戻り値</h3>
  <p class="simpara">
   ステートメントリソースが前進のみのカーソルを使用している場合に
   <strong><code><a href="ibm-db2.constants.php#constant.db2-forward-only">DB2_FORWARD_ONLY</a></code></strong>、スクロール可能なカーソルを
   使用している場合に <strong><code><a href="ibm-db2.constants.php#constant.db2-scrollable">DB2_SCROLLABLE</a></code></strong> を返します。
  </p>
 </div>


 

 <div class="refsect1 seealso" id="refsect1-function.db2-cursor-type-seealso">
  <h3 class="title">参考</h3>
  <ul class="simplelist">
   <li><span class="function"><a href="function.db2-prepare.php" class="function" rel="rdfs-seeAlso">db2_prepare()</a> - 実行する SQL 文を準備する</span></li>
  </ul>
 </div>


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