<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/book.mysql.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ja',
  ),
  'this' => 
  array (
    0 => 'mysql.constants.php',
    1 => '定義済み定数',
    2 => '定義済み定数',
  ),
  'up' => 
  array (
    0 => 'book.mysql.php',
    1 => 'MySQL (最初の API)',
  ),
  'prev' => 
  array (
    0 => 'changelog.mysql.php',
    1 => '変更履歴',
  ),
  'next' => 
  array (
    0 => 'mysql.examples.php',
    1 => '例',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ja',
    'path' => 'reference/mysql/constants.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="mysql.constants" class="appendix">
 <h1 class="title">定義済み定数</h1>

 <p class="simpara">
以下の定数が定義されています。
この関数の拡張モジュールが PHP 組み込みでコンパイルされているか、
実行時に動的にロードされている場合のみ使用可能です。
</p>
 <p class="para">
  <span class="function"><a href="function.mysql-connect.php" class="function">mysql_connect()</a></span> や
  <span class="function"><a href="function.mysql-pconnect.php" class="function">mysql_pconnect()</a></span> で追加のクライアントフラグを
  指定することができます。以下の定数が定義されています。
  <table id="mysql.client-flags" class="doctable table">
   <caption><strong>MySQL クライアント定数</strong></caption>
    
     <thead>
      <tr>
       <th>定数</th>
       <th>説明</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr id="constant.mysql-client-compress">
       <td><strong><code><a href="mysql.constants.php#constant.mysql-client-compress">MYSQL_CLIENT_COMPRESS</a></code></strong></td>
       <td>圧縮プロトコルを利用します。</td>
      </tr>

      <tr id="constant.mysql-client-ignore-space">
       <td><strong><code><a href="mysql.constants.php#constant.mysql-client-ignore-space">MYSQL_CLIENT_IGNORE_SPACE</a></code></strong></td>
       <td>関数名の後のスペースを許可します。</td>
      </tr>

      <tr id="constant.mysql-client-interactive">
       <td><strong><code><a href="mysql.constants.php#constant.mysql-client-interactive">MYSQL_CLIENT_INTERACTIVE</a></code></strong></td>
       <td>interactive_timeout で指定された秒数（<strong class="option unknown">wait_timeout</strong> のかわり）
        の無通信が続くまで接続を閉じません。</td>
      </tr>

      <tr id="constant.mysql-client-ssl">
       <td><strong><code><a href="mysql.constants.php#constant.mysql-client-ssl">MYSQL_CLIENT_SSL</a></code></strong></td>
       <td>SSL による暗号化を使用します。このフラグは、バージョン 4.x
        以降の MySQL クライアントライブラリを利用している場合にのみ有効です。
        PHP 4 や、Windows 版の PHP 5 にバンドルされているのは、バージョン
        3.23.x のライブラリです。
       </td>
      </tr>

     </tbody>
    
  </table>

 </p>

 <p class="para">
  <span class="function"><a href="function.mysql-fetch-array.php" class="function">mysql_fetch_array()</a></span> 関数は、結果の配列の形式を
  指定するための定数を使用します。以下の定数が定義されています。
  <table id="mysql.constants.fetch" class="doctable table">
   <caption><strong>MySQL フェッチ定数</strong></caption>
   
    <thead>
     <tr>
      <th>定数</th>
      <th>説明</th>
     </tr>

    </thead>

    <tbody class="tbody">
     <tr id="constant.mysql-assoc">
      <td><strong><code><a href="mysql.constants.php#constant.mysql-assoc">MYSQL_ASSOC</a></code></strong></td>
      <td>
       カラムは、フィールド名を添字とする配列形式で返されます。
      </td>
     </tr>

     <tr id="constant.mysql-both">
      <td><strong><code><a href="mysql.constants.php#constant.mysql-both">MYSQL_BOTH</a></code></strong></td>
      <td>
       カラムは、数値の添字とフィールド名の添字のどちらでもアクセスできる
       配列形式で返されます。
      </td>
     </tr>

     <tr id="constant.mysql-num">
      <td><strong><code><a href="mysql.constants.php#constant.mysql-num">MYSQL_NUM</a></code></strong></td>
      <td>
       カラムは、数値の添字を持つ配列形式で返されます。添字は 0 からはじまり、
       結果の最初のフィールドです。
      </td>
     </tr>

    </tbody>
   
  </table>

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