<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.mysql.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ja',
  ),
  'this' => 
  array (
    0 => 'function.mysql-info.php',
    1 => 'mysql_info',
    2 => '直近のクエリについての情報を得る',
  ),
  'up' => 
  array (
    0 => 'ref.mysql.php',
    1 => 'MySQL 関数',
  ),
  'prev' => 
  array (
    0 => 'function.mysql-get-server-info.php',
    1 => 'mysql_get_server_info',
  ),
  'next' => 
  array (
    0 => 'function.mysql-insert-id.php',
    1 => 'mysql_insert_id',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ja',
    'path' => 'reference/mysql/functions/mysql-info.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.mysql-info" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">mysql_info</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.3.0, PHP 5)</p><p class="refpurpose"><span class="refname">mysql_info</span> &mdash; <span class="dc-title">直近のクエリについての情報を得る</span></p>

 </div>

 <div id="function.mysql-info-refsynopsisdiv">
  <div class="warning"><strong class="warning">警告</strong>
   <p class="para">
この拡張モジュールは PHP 5.5.0 で非推奨になり、PHP 7.0.0 で削除されました。
<a href="book.mysqli.php" class="link">MySQLi</a> あるいは
<a href="ref.pdo-mysql.php" class="link">PDO_MySQL</a> を使うべきです。詳細な情報は
<a href="mysqlinfo.api.choosing.php" class="link">MySQL: API の選択</a> を参照ください。
この関数の代替として、これらが使えます。</p>
   <ul class="simplelist">
    <li><span class="function"><a href="mysqli.info.php" class="function">mysqli_info()</a></span></li>
   </ul>
  </div>
 </div>

 <div class="refsect1 description" id="refsect1-function.mysql-info-description">
  <h3 class="title">説明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>mysql_info</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> <code class="parameter">$link_identifier</code><span class="initializer"> = NULL</span></span>): <span class="type"><a href="language.types.string.php" class="type string">string</a></span></div>

  <p class="simpara">
   直近のクエリについての詳細な情報を返します。
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.mysql-info-parameters">
  <h3 class="title">パラメータ</h3>
  <dl>
   <dt><code class="parameter">link_identifier</code></dt><dd><p class="para">MySQL 接続。指定されない場合、<span class="function"><a href="function.mysql-connect.php" class="function">mysql_connect()</a></span> により直近にオープンされたリンクが指定されたと仮定されます。そのようなリンクがない場合、引数を指定せずに <span class="function"><a href="function.mysql-connect.php" class="function">mysql_connect()</a></span> がコールした時と同様にリンクを確立します。リンクが見付からない、または、確立できない場合、<strong><code><a href="errorfunc.constants.php#constant.e-warning">E_WARNING</a></code></strong> レベルのエラーが生成されます。</p></dd>
  </dl>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.mysql-info-returnvalues">
  <h3 class="title">戻り値</h3>
  <p class="simpara">
   成功した場合に文についての情報、失敗した場合に <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> を返します。
   どんな文が情報を返し、またそれがどのように見えるのかについては、以下の
   例を参照ください。ここに挙げられていない文では <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> が返されます。
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.mysql-info-examples">
  <h3 class="title">例</h3>
  <div class="example" id="example-1">
   <p><strong>例1 該当する MySQL 文</strong></p>
   <div class="example-contents"><p>
    情報を返す文の例です。数値はあくまで説明用の例で、実際の値は
    クエリの内容によって変わります。
   </p></div>
   <div class="example-contents">
<div class="mysqlcode"><pre class="mysqlcode">INSERT INTO ... SELECT ...
String format: Records: 23 Duplicates: 0 Warnings: 0
INSERT INTO ... VALUES (...),(...),(...)...
String format: Records: 37 Duplicates: 0 Warnings: 0
LOAD DATA INFILE ...
String format: Records: 42 Deleted: 0 Skipped: 0 Warnings: 0
ALTER TABLE
String format: Records: 60 Duplicates: 0 Warnings: 0
UPDATE
String format: Rows matched: 65 Changed: 65 Warnings: 0</pre>
</div>
   </div>

  </div>
 </div>


 <div class="refsect1 notes" id="refsect1-function.mysql-info-notes">
  <h3 class="title">注意</h3>
  <blockquote class="note"><p><strong class="note">注意</strong>: 
   <span class="simpara">
    INSERT ... VALUES 文で <span class="function"><strong>mysql_info()</strong></span> が非 <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> 値を
    返すのは、文中で複数の値のリストが指定された場合に限ります。
   </span>
  </p></blockquote>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.mysql-info-seealso">
  <h3 class="title">参考</h3>
  <ul class="simplelist">
   <li><span class="function"><a href="function.mysql-affected-rows.php" class="function" rel="rdfs-seeAlso">mysql_affected_rows()</a> - 一番最近の操作で変更された行の数を得る</span></li>
   <li><span class="function"><a href="function.mysql-insert-id.php" class="function" rel="rdfs-seeAlso">mysql_insert_id()</a> - 直近のクエリで生成された ID を得る</span></li>
   <li><span class="function"><a href="function.mysql-stat.php" class="function" rel="rdfs-seeAlso">mysql_stat()</a> - 現在のシステムの状態を取得する</span></li>
  </ul>
 </div>

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