<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/book.ibm-db2.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'zh',
  ),
  'this' => 
  array (
    0 => 'ibm-db2.constants.php',
    1 => '预定义常量',
    2 => '预定义常量',
  ),
  'up' => 
  array (
    0 => 'book.ibm-db2.php',
    1 => 'IBM DB2',
  ),
  'prev' => 
  array (
    0 => 'ibm-db2.resources.php',
    1 => '资源类型',
  ),
  'next' => 
  array (
    0 => 'ref.ibm-db2.php',
    1 => 'IBM DB2 函数',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'en',
    'path' => 'reference/ibm_db2/constants.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="ibm-db2.constants" class="appendix">
 <h1 class="title">预定义常量</h1>

 <p class="simpara">下列常量由此扩展定义，且仅在此扩展编译入 PHP 或在运行时动态载入时可用。</p>
 <dl>
  
   <dt id="constant.db2-binary">
    <strong><code><a href="ibm-db2.constants.php#constant.db2-binary">DB2_BINARY</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara"> 
     Specifies that binary data shall be returned as is. This is the default
     mode.
    </span>
   </dd>
  
  
   <dt id="constant.db2-convert">
    <strong><code><a href="ibm-db2.constants.php#constant.db2-convert">DB2_CONVERT</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Specifies that binary data shall be converted to a hexadecimal encoding
     and returned as an ASCII string.
    </span>
   </dd>
  
  
   <dt id="constant.db2-passthru">
    <strong><code><a href="ibm-db2.constants.php#constant.db2-passthru">DB2_PASSTHRU</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Specifies that binary data shall be converted to a <strong><code><a href="reserved.constants.php#constant.null">null</a></code></strong> value.
    </span>
   </dd>
  
  
   <dt id="constant.db2-scrollable">
    <strong><code><a href="ibm-db2.constants.php#constant.db2-scrollable">DB2_SCROLLABLE</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara"> 
     Specifies a scrollable cursor for a statement resource. This mode enables
     random access to rows in a result set, but currently is supported only by
     IBM DB2 Universal Database.
    </span>
   </dd>
  
  
   <dt id="constant.db2-forward-only">
    <strong><code><a href="ibm-db2.constants.php#constant.db2-forward-only">DB2_FORWARD_ONLY</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Specifies a forward-only cursor for a statement resource. This is the
     default cursor type and is supported on all database servers.
    </span>
   </dd>
  
  
   <dt id="constant.db2-param-in">
    <strong><code><a href="ibm-db2.constants.php#constant.db2-param-in">DB2_PARAM_IN</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Specifies the PHP variable should be bound as an IN parameter for a
     stored procedure.
    </span>
   </dd>
  
  
   <dt id="constant.db2-param-out">
    <strong><code><a href="ibm-db2.constants.php#constant.db2-param-out">DB2_PARAM_OUT</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Specifies the PHP variable should be bound as an OUT parameter for a
     stored procedure.
    </span>
   </dd>
  
  
   <dt id="constant.db2-param-inout">
    <strong><code><a href="ibm-db2.constants.php#constant.db2-param-inout">DB2_PARAM_INOUT</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Specifies the PHP variable should be bound as an INOUT parameter for a
     stored procedure.
    </span>
   </dd>
  
  
   <dt id="constant.db2-param-file">
    <strong><code><a href="ibm-db2.constants.php#constant.db2-param-file">DB2_PARAM_FILE</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Specifies that the column should be bound directly to a file for input.
    </span>
   </dd>
  
  
   <dt id="constant.db2-autocommit-on">
    <strong><code><a href="ibm-db2.constants.php#constant.db2-autocommit-on">DB2_AUTOCOMMIT_ON</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Specifies that autocommit should be turned on.
    </span>
   </dd>
  
  
   <dt id="constant.db2-autocommit-off">
    <strong><code><a href="ibm-db2.constants.php#constant.db2-autocommit-off">DB2_AUTOCOMMIT_OFF</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Specifies that autocommit should be turned off.
    </span>
   </dd>
  
  
   <dt id="constant.db2-double">
    <strong><code><a href="ibm-db2.constants.php#constant.db2-double">DB2_DOUBLE</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Specifies that the variable should be bound as a DOUBLE, FLOAT, or REAL
     data type.
    </span>
   </dd>
  
  
   <dt id="constant.db2-long">
    <strong><code><a href="ibm-db2.constants.php#constant.db2-long">DB2_LONG</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Specifies that the variable should be bound as a SMALLINT, INTEGER, or
     BIGINT data type.
    </span>
   </dd>
  
  
   <dt id="constant.db2-char">
    <strong><code><a href="ibm-db2.constants.php#constant.db2-char">DB2_CHAR</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Specifies that the variable should be bound as a CHAR or VARCHAR data type.
    </span>
   </dd>
  
  
   <dt id="constant.db2-case-natural">
    <strong><code><a href="ibm-db2.constants.php#constant.db2-case-natural">DB2_CASE_NATURAL</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Specifies that column names will be returned in their natural case.
    </span>
   </dd>
  
  
   <dt id="constant.db2-case-lower">
    <strong><code><a href="ibm-db2.constants.php#constant.db2-case-lower">DB2_CASE_LOWER</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Specifies that column names will be returned in lower case.
    </span>
   </dd>
  
  
   <dt id="constant.db2-case-upper">
    <strong><code><a href="ibm-db2.constants.php#constant.db2-case-upper">DB2_CASE_UPPER</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Specifies that column names will be returned in upper case.
    </span>
   </dd>
  
  
   <dt id="constant.db2-deferred-prepare-on">
    <strong><code><a href="ibm-db2.constants.php#constant.db2-deferred-prepare-on">DB2_DEFERRED_PREPARE_ON</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Specifies that deferred prepare should be turned on for the specified statement resource. 
    </span>
   </dd>
  
  
   <dt id="constant.db2-deferred-prepare-off">
    <strong><code><a href="ibm-db2.constants.php#constant.db2-deferred-prepare-off">DB2_DEFERRED_PREPARE_OFF</a></code></strong>
     (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     Specifies that deferred prepare should be turned off for the specified statement resource. 
    </span>
   </dd>
  
 </dl>
</div>
<?php manual_footer($setup); ?>