mysql_info
(PHP 4 >= 4.3.0, PHP 5)
mysql_info — 取得最近一条查询的信息
<h3>说明</h3>
 string <strong>mysql_info</strong>
  ([ resource <code>$link_identifier</code>
] )
<p>
 <strong>mysql_info()</strong>
 返回通过给定的
 <code>link_identifier</code>
 所进行的最新一条查询的详细信息。如果没有指定
 <code>link_identifier</code>,则假定为上一个打开的连接。
</p>
<p>
 <strong>mysql_info()</strong>
 对以下列出的所有语句返回一个字符串。对于其它任何语句返回
 <strong><code>FALSE</code></strong>。字符串的格式取决于给出的语句。
  <p><strong>Example #1 相关的 MySQL 语句</strong></p>INSERT INTO ... SELECT ... 字符串格式:Records: 23 Duplicates: 0 Warnings: 0 INSERT INTO ... VALUES (...),(...),(...)... 字符串格式:Records: 37 Duplicates: 0 Warnings: 0 LOAD DATA INFILE ... 字符串格式:Records: 42 Deleted: 0 Skipped: 0 Warnings: 0 ALTER TABLE 字符串格式:Records: 60 Duplicates: 0 Warnings: 0 UPDATE 字符串格式:Rows matched: 65 Changed: 65 Warnings: 0
 上例中的数字只是为了演示的目的,实际的值取决于查询。
</p>
<p><strong>Note</strong>:
 <p>
  <strong>mysql_info()</strong>
  对于
  INSERT ... VALUES
  语句仅在该语句中列出了多个值的情况下返回一个非 <strong><code>FALSE</code></strong> 的值。
</p>
</p>
<p>
 参见 mysql_affected_rows()。
</p>