function.mysql-info.html
来自「php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容」· HTML 代码 · 共 126 行
HTML
126 行
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>Get information about the most recent query</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.mysql-get-server-info.html">mysql_get_server_info</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.mysql-insert-id.html">mysql_insert_id</a></div> <div class="up"><a href="ref.mysql.html">MySQL Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="function.mysql-info" class="refentry"> <div class="refnamediv"> <h1 class="refname">mysql_info</h1> <p class="verinfo">(PHP 4 >= 4.3.0, PHP 5, PECL mysql:1.0)</p><p class="refpurpose"><span class="refname">mysql_info</span> — <span class="dc-title">Get information about the most recent query</span></p> </div> <div class="refsect1 description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type">string</span> <span class="methodname"><b><b>mysql_info</b></b></span> ([ <span class="methodparam"><span class="type">resource</span> <tt class="parameter">$link_identifier</tt></span> ] )</div> <p class="para rdfs-comment"> Returns detailed information about the last query. </p> </div> <div class="refsect1 parameters"> <h3 class="title">Parameters</h3> <p class="para"> <dl> <dt><span class="term"><i><tt class="parameter">link_identifier</tt></i></span><dd><p class="para">The MySQL connection. If the link identifier is not specified, the last link opened by <a href="function.mysql-connect.html" class="function">mysql_connect()</a> is assumed. If no such link is found, itwill try to create one as if <a href="function.mysql-connect.html" class="function">mysql_connect()</a> was calledwith no arguments. If by chance no connection is found or established, an<b><tt>E_WARNING</tt></b> level error is generated.</p></dd></dt> </dl> </p> </div> <div class="refsect1 returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> Returns information about the statement on success, or <b><tt>FALSE</tt></b> on failure. See the example below for which statements provide information, and what the returned value may look like. Statements that are not listed will return <b><tt>FALSE</tt></b>. </p> </div> <div class="refsect1 examples"> <h3 class="title">Examples</h3> <p class="para"> <div class="example"> <p><b>Example #1 Relevant MySQL Statements</b></p> <div class="example-contents"><p> Statements that return string values. The numbers are only for illustrating purpose; their values will correspond to the query. </p></div> <div class="example-contents"><div class="cdata"><pre>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 TABLEString format: Records: 60 Duplicates: 0 Warnings: 0 UPDATEString format: Rows matched: 65 Changed: 65 Warnings: 0</pre></div> </div> </div> </p> </div> <div class="refsect1 notes"> <h3 class="title">Notes</h3> <blockquote><p><b class="note">Note</b>: <b>mysql_info()</b> returns a non-<b><tt>FALSE</tt></b> value for the INSERT ... VALUES statement only if multiple value lists are specified in the statement. <br /> </p></blockquote> </div> <div class="refsect1 seealso"> <h3 class="title">See Also</h3> <p class="para"> <ul class="simplelist"> <li class="member"><a href="function.mysql-affected-rows.html" class="function" rel="rdfs-seeAlso">mysql_affected_rows()</a></li> <li class="member"><a href="function.mysql-insert-id.html" class="function" rel="rdfs-seeAlso">mysql_insert_id()</a></li> <li class="member"><a href="function.mysql-stat.html" class="function" rel="rdfs-seeAlso">mysql_stat()</a></li> </ul> </p> </div></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="function.mysql-get-server-info.html">mysql_get_server_info</a></div> <div class="next" style="text-align: right; float: right;"><a href="function.mysql-insert-id.html">mysql_insert_id</a></div> <div class="up"><a href="ref.mysql.html">MySQL Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?