cvs: phpdoc-zh /reference/mysql/functions mysql-list-dbs.xml mysql-list-fields.xml mysql-list-processes.xml mysql-list-tables.xml mysql-num-fields.xml
mysql-num-rows.xml mysql-ping.xml mysql-query.xml mysql-real-escape-string.xml mysql-result.xml mysql-select-db.xml mysql-stat.xml mysql-tablename.xml
mysql-thread-id.xml mysql-unbuffered-query.xml

From: Date: Tue, 19 Aug 2003 00:29:32 +0000
Subject: cvs: phpdoc-zh /reference/mysql/functions mysql-list-dbs.xml mysql-list-fields.xml mysql-list-processes.xml mysql-list-tables.xml mysql-num-fields.xml
mysql-num-rows.xml mysql-ping.xml mysql-query.xml mysql-real-escape-string.xml mysql-result.xml mysql-select-db.xml mysql-stat.xml mysql-tablename.xml
mysql-thread-id.xml mysql-unbuffered-query.xml
Groups: php.doc.zh 
Request: Send a blank email to doc-zh+get-1641@lists.php.net to get a copy of this message
dallas Mon Aug 18 20:29:32 2003 EDT Modified files: /phpdoc-zh/reference/mysql/functions mysql-list-dbs.xml mysql-list-fields.xml mysql-list-processes.xml mysql-list-tables.xml mysql-num-fields.xml mysql-num-rows.xml mysql-ping.xml mysql-query.xml mysql-real-escape-string.xml mysql-result.xml mysql-select-db.xml mysql-stat.xml mysql-tablename.xml mysql-thread-id.xml mysql-unbuffered-query.xml Log: Updated.

Index: phpdoc-zh/reference/mysql/functions/mysql-list-dbs.xml diff -u phpdoc-zh/reference/mysql/functions/mysql-list-dbs.xml:1.1 phpdoc-zh/reference/mysql/functions/mysql-list-dbs.xml:1.2 --- phpdoc-zh/reference/mysql/functions/mysql-list-dbs.xml:1.1 Sat Mar 1 07:18:32 2003 +++ phpdoc-zh/reference/mysql/functions/mysql-list-dbs.xml Mon Aug 18 20:29:32 2003 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <!-- $Author: dallas $ --> -<!-- EN-Revision: 1.3 Maintainer: dallas Status: ready --> +<!-- EN-Revision: 1.4 Maintainer: dallas Status: ready --> <refentry id="function.mysql-list-dbs"> <refnamediv> <refname>mysql_list_dbs</refname> @@ -11,12 +11,10 @@ </refnamediv> <refsect1> <title>˵Ã÷</title> - <methodsynopsis> - <type>resource</type><methodname>mysql_list_dbs</methodname> - <methodparam choice="opt"><type>resource</type><parameter> - link_identifier - </parameter></methodparam> - </methodsynopsis> + <methodsynopsis> + <type>resource</type><methodname>mysql_list_dbs</methodname> + <methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam> + </methodsynopsis> <para> <function>mysql_list_dbs</function> ½«·µ»ØÒ»¸ö½á¹ûÖ¸Õ룬°üº¬Á˵±Ç° MySQL ½ø³ÌÖÐËùÓпÉÓõÄÊý¾Ý¿â¡£Óà @@ -41,15 +39,15 @@ </programlisting> <para> ÒÔÉÏÀý×Ó½«²úÉúÈçÏÂÊä³ö£º - <screen> + </para> + <screen> <![CDATA[ database1 database2 database3 ... ]]> - </screen> - </para> + </screen> </example> </para> <note> Index: phpdoc-zh/reference/mysql/functions/mysql-list-fields.xml diff -u phpdoc-zh/reference/mysql/functions/mysql-list-fields.xml:1.1 phpdoc-zh/reference/mysql/functions/mysql-list-fields.xml:1.2 --- phpdoc-zh/reference/mysql/functions/mysql-list-fields.xml:1.1 Sat Mar 1 07:18:32 2003 +++ phpdoc-zh/reference/mysql/functions/mysql-list-fields.xml Mon Aug 18 20:29:32 2003 @@ -1,22 +1,20 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <!-- $Author: dallas $ --> -<!-- EN-Revision: 1.3 Maintainer: dallas Status: ready --> +<!-- EN-Revision: 1.5 Maintainer: dallas Status: ready --> <refentry id="function.mysql-list-fields"> <refnamediv> <refname>mysql_list_fields</refname> - <refpurpose>Áгö MySQL ±íÖеÄ×Ö¶Î</refpurpose> + <refpurpose>Áгö MySQL ½á¹ûÖеÄ×Ö¶Î</refpurpose> </refnamediv> <refsect1> <title>˵Ã÷</title> - <methodsynopsis> - <type>resource</type><methodname>mysql_list_fields</methodname> - <methodparam><type>string</type><parameter>database_name</parameter></methodparam> - <methodparam><type>string</type><parameter>table_name</parameter></methodparam> - <methodparam choice="opt"><type>resource</type><parameter> - link_identifier - </parameter></methodparam> - </methodsynopsis> + <methodsynopsis> + <type>resource</type><methodname>mysql_list_fields</methodname> + <methodparam><type>string</type><parameter>database_name</parameter></methodparam> + <methodparam><type>string</type><parameter>table_name</parameter></methodparam> + <methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam> + </methodsynopsis> <para> <function>mysql_list_fields</function> È¡µÃ¸ø¶¨±íÃûµÄÐÅÏ¢¡£²ÎÊýÊÇÊý¾Ý¿âÃûºÍ±íÃû¡£·µ»ØÒ»¸ö½á¹ûÖ¸Õ룬¿ÉÒÔÓÃÓÚ @@ -41,15 +39,15 @@ </programlisting> <para> ÒÔÉÏÀý×Ó½«²úÉúÈçÏÂÊä³ö£º - <screen> + </para> + <screen> <![CDATA[ field1 field2 field3 ... ]]> - </screen> - </para> + </screen> </example> </para> <para> Index: phpdoc-zh/reference/mysql/functions/mysql-list-processes.xml diff -u phpdoc-zh/reference/mysql/functions/mysql-list-processes.xml:1.2 phpdoc-zh/reference/mysql/functions/mysql-list-processes.xml:1.3 --- phpdoc-zh/reference/mysql/functions/mysql-list-processes.xml:1.2 Wed Mar 26 03:12:09 2003 +++ phpdoc-zh/reference/mysql/functions/mysql-list-processes.xml Mon Aug 18 20:29:32 2003 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.2 $ --> -<!-- $Author: gregory $ --> -<!-- EN-Revision: 1.3 Maintainer: dallas Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- $Author: dallas $ --> +<!-- EN-Revision: 1.4 Maintainer: dallas Status: ready --> <refentry id="function.mysql-list-processes"> <refnamediv> <refname>mysql_list_processes</refname> @@ -9,12 +9,10 @@ </refnamediv> <refsect1> <title>˵Ã÷</title> - <methodsynopsis> - <type>resource</type><methodname>mysql_list_processes</methodname> - <methodparam choice="opt"><type>resource</type><parameter> - link_identifier - </parameter></methodparam> - </methodsynopsis> + <methodsynopsis> + <type>resource</type><methodname>mysql_list_processes</methodname> + <methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam> + </methodsynopsis> <para> <function>mysql_list_processes</function> ·µ»ØÒ»¸ö½á¹ûÖ¸Õ룬˵Ã÷Á˵±Ç°·þÎñÆ÷µÄÏ̡߳£ @@ -28,7 +26,7 @@ $link = mysql_connect('localhost', 'mysql_user', 'mysql_password'); $result = mysql_list_processes($link); -while ($row = mysql_fetch_assoc($result)){ +while ($row = mysql_fetch_assoc($result)){ printf("%s %s %s %s %s\n", $row["Id"], $row["Host"], $row["db"], $row["Command"], $row["Time"]); } @@ -38,13 +36,13 @@ </programlisting> <para> ÒÔÉÏÀý×Ó½«²úÉúÈçÏÂÊä³ö£º - <screen> + </para> + <screen> <![CDATA[ 1 localhost test Processlist 0 4 localhost mysql sleep 5 ]]> - </screen> - </para> + </screen> </example> </para> <para> Index: phpdoc-zh/reference/mysql/functions/mysql-list-tables.xml diff -u phpdoc-zh/reference/mysql/functions/mysql-list-tables.xml:1.2 phpdoc-zh/reference/mysql/functions/mysql-list-tables.xml:1.3 --- phpdoc-zh/reference/mysql/functions/mysql-list-tables.xml:1.2 Wed Mar 26 03:12:09 2003 +++ phpdoc-zh/reference/mysql/functions/mysql-list-tables.xml Mon Aug 18 20:29:32 2003 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.2 $ --> -<!-- $Author: gregory $ --> -<!-- EN-Revision: 1.6 Maintainer: dallas Status: ready --> +<!-- $Revision: 1.3 $ --> +<!-- $Author: dallas $ --> +<!-- EN-Revision: 1.7 Maintainer: dallas Status: ready --> <refentry id="function.mysql-list-tables"> <refnamediv> <refname>mysql_list_tables</refname> @@ -9,13 +9,11 @@ </refnamediv> <refsect1> <title>˵Ã÷</title> - <methodsynopsis> - <type>resource</type><methodname>mysql_list_tables</methodname> - <methodparam><type>string</type><parameter>database</parameter></methodparam> - <methodparam choice="opt"><type>resource</type><parameter> - link_identifier - </parameter></methodparam> - </methodsynopsis> + <methodsynopsis> + <type>resource</type><methodname>mysql_list_tables</methodname> + <methodparam><type>string</type><parameter>database</parameter></methodparam> + <methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam> + </methodsynopsis> <para> <function>mysql_list_tables</function> ½ÓÊÜÒ»¸öÊý¾Ý¿âÃû²¢·µ»ØºÍ @@ -33,17 +31,18 @@ <para> ΪÏòϼæÈÝÈÔÈ»¿ÉÒÔʹÓñ¾º¯ÊýµÄ±ðÃû <function>mysql_listtables</function>£¬µ«·´¶ÔÕâÑù×ö¡£ - </para> - <para> - <note> - <simpara> + </para> + <para> + <note> + <simpara> ¸Ãº¯ÊýÒѾ­±»É¾³ýÁË£¬Çë²»ÒªÔÙʹÓøú¯Êý¡£Äú¿ÉÒÔÓÃÃüÁî SHOW TABLES FROM DATABASE À´ÊµÏָú¯ÊýµÄ¹¦ÄÜ¡£ - </simpara> - </note> + </simpara> + </note> </para> - <example> - <title><function>mysql_list_tables</function> Àý×Ó</title> - <programlisting role="php"> + <para> + <example> + <title><function>mysql_list_tables</function> Àý×Ó</title> + <programlisting role="php"> <![CDATA[ <?php $dbname = 'mysql_dbname'; @@ -54,13 +53,13 @@ } $result = mysql_list_tables($dbname); - + if (!$result) { print "DB Error, could not list tables\n"; print 'MySQL Error: ' . mysql_error(); exit; } - + while ($row = mysql_fetch_row($result)) { print "Table: $row[0]\n"; } @@ -68,8 +67,9 @@ mysql_free_result($result); ?> ]]> - </programlisting> - </example> + </programlisting> + </example> + </para> <para> ²Î¼û <function>mysql_list_dbs</function> ºÍ <function>mysql_tablename</function>¡£ Index: phpdoc-zh/reference/mysql/functions/mysql-num-fields.xml diff -u phpdoc-zh/reference/mysql/functions/mysql-num-fields.xml:1.2 phpdoc-zh/reference/mysql/functions/mysql-num-fields.xml:1.3 --- phpdoc-zh/reference/mysql/functions/mysql-num-fields.xml:1.2 Sat Mar 1 07:34:14 2003 +++ phpdoc-zh/reference/mysql/functions/mysql-num-fields.xml Mon Aug 18 20:29:32 2003 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- $Author: dallas $ --> -<!-- EN-Revision: 1.4 Maintainer: dallas Status: ready --> +<!-- EN-Revision: 1.5 Maintainer: dallas Status: ready --> <refentry id="function.mysql-num-fields"> <refnamediv> <refname>mysql_num_fields</refname> Index: phpdoc-zh/reference/mysql/functions/mysql-num-rows.xml diff -u phpdoc-zh/reference/mysql/functions/mysql-num-rows.xml:1.2 phpdoc-zh/reference/mysql/functions/mysql-num-rows.xml:1.3 --- phpdoc-zh/reference/mysql/functions/mysql-num-rows.xml:1.2 Sat Mar 1 07:34:14 2003 +++ phpdoc-zh/reference/mysql/functions/mysql-num-rows.xml Mon Aug 18 20:29:32 2003 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- $Author: dallas $ --> -<!-- EN-Revision: 1.4 Maintainer: dallas Status: ready --> +<!-- EN-Revision: 1.5 Maintainer: dallas Status: ready --> <refentry id="function.mysql-num-rows"> <refnamediv> <refname>mysql_num_rows</refname> Index: phpdoc-zh/reference/mysql/functions/mysql-ping.xml diff -u phpdoc-zh/reference/mysql/functions/mysql-ping.xml:1.1 phpdoc-zh/reference/mysql/functions/mysql-ping.xml:1.2 --- phpdoc-zh/reference/mysql/functions/mysql-ping.xml:1.1 Tue Mar 4 03:51:46 2003 +++ phpdoc-zh/reference/mysql/functions/mysql-ping.xml Mon Aug 18 20:29:32 2003 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <!-- $Author: dallas $ --> -<!-- EN-Revision: 1.3 Maintainer: dallas Status: ready --> +<!-- EN-Revision: 1.4 Maintainer: dallas Status: ready --> <refentry id="function.mysql-ping"> <refnamediv> <refname>mysql_ping</refname> Index: phpdoc-zh/reference/mysql/functions/mysql-query.xml diff -u phpdoc-zh/reference/mysql/functions/mysql-query.xml:1.2 phpdoc-zh/reference/mysql/functions/mysql-query.xml:1.3 --- phpdoc-zh/reference/mysql/functions/mysql-query.xml:1.2 Sun Apr 20 02:43:55 2003 +++ phpdoc-zh/reference/mysql/functions/mysql-query.xml Mon Aug 18 20:29:32 2003 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- $Author: dallas $ --> -<!-- EN-Revision: 1.6 Maintainer: dallas Status: ready --> +<!-- EN-Revision: 1.7 Maintainer: dallas Status: ready --> <refentry id="function.mysql-query"> <refnamediv> <refname>mysql_query</refname> @@ -41,7 +41,7 @@ <function>mysql_query</function> ʧ°Ü²¢·µ»Ø &false;£º <example> - <title><function>mysql_query</function></title> + <title><function>mysql_query</function> Àý×Ó</title> <programlisting role="php"> <![CDATA[ <php Index: phpdoc-zh/reference/mysql/functions/mysql-real-escape-string.xml diff -u phpdoc-zh/reference/mysql/functions/mysql-real-escape-string.xml:1.1 phpdoc-zh/reference/mysql/functions/mysql-real-escape-string.xml:1.2 --- phpdoc-zh/reference/mysql/functions/mysql-real-escape-string.xml:1.1 Tue Mar 4 06:15:34 2003 +++ phpdoc-zh/reference/mysql/functions/mysql-real-escape-string.xml Mon Aug 18 20:29:32 2003 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <!-- $Author: dallas $ --> -<!-- EN-Revision: 1.3 Maintainer: dallas Status: ready --> +<!-- EN-Revision: 1.5 Maintainer: dallas Status: ready --> <refentry id="function.mysql-real-escape-string"> <refnamediv> <refname>mysql_real_escape_string</refname> @@ -28,12 +28,12 @@ <literal>%</literal> ºÍ <literal>_</literal>¡£ </simpara> </note> + <para> <example> <title><function>mysql_real_escape_string</function> Àý×Ó</title> <programlisting role="php"> <![CDATA[ <?php -$link = mysql_connect('localhost', 'mysql_user', 'mysql_password'); $item = "Zak's and Derick's Laptop"; $escaped_item = mysql_real_escape_string($item); printf ("Escaped string: %s\n", $escaped_item); @@ -42,12 +42,12 @@ </programlisting> <para> ÒÔÉÏÀý×Ó½«²úÉúÈçÏÂÊä³ö£º - <screen> + </para> + <screen> <![CDATA[ Escaped string: Zak\'s and Derick\'s Laptop ]]> - </screen> - </para> + </screen> </example> <para> ²Î¼û Index: phpdoc-zh/reference/mysql/functions/mysql-result.xml diff -u phpdoc-zh/reference/mysql/functions/mysql-result.xml:1.1 phpdoc-zh/reference/mysql/functions/mysql-result.xml:1.2 --- phpdoc-zh/reference/mysql/functions/mysql-result.xml:1.1 Tue Mar 4 06:15:34 2003 +++ phpdoc-zh/reference/mysql/functions/mysql-result.xml Mon Aug 18 20:29:32 2003 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <!-- $Author: dallas $ --> -<!-- EN-Revision: 1.2 Maintainer: dallas Status: ready --> +<!-- EN-Revision: 1.3 Maintainer: dallas Status: ready --> <refentry id="function.mysql-result"> <refnamediv> <refname>mysql_result</refname> @@ -9,14 +9,12 @@ </refnamediv> <refsect1> <title>˵Ã÷</title> - <methodsynopsis> - <type>mixed</type><methodname>mysql_result</methodname> - <methodparam><type>resource</type><parameter>result</parameter></methodparam> - <methodparam><type>int</type><parameter>row</parameter></methodparam> - <methodparam choice="opt"><type>mixed</type><parameter> - field - </parameter></methodparam> - </methodsynopsis> + <methodsynopsis> + <type>mixed</type><methodname>mysql_result</methodname> + <methodparam><type>resource</type><parameter>result</parameter></methodparam> + <methodparam><type>int</type><parameter>row</parameter></methodparam> + <methodparam choice="opt"><type>mixed</type><parameter>field</parameter></methodparam> + </methodsynopsis> <para> <function>mysql_result</function> ·µ»Ø MySQL ½á¹û¼¯ÖÐÒ»¸öµ¥ÔªµÄÄÚÈÝ¡£×ֶβÎÊý¿ÉÒÔÊÇ×Ö¶ÎµÄÆ«ÒÆÁ¿»òÕß×Ö¶ÎÃû£¬»òÕßÊÇ×ֶαíµã×Ö¶ÎÃû£¨tablename.fieldname£©¡£Èç¹û¸øÁÐÆðÁ˱ðÃû£¨'select @@ -33,8 +31,28 @@ ²»ÄÜºÍÆäËü´¦Àí½á¹û¼¯µÄº¯Êý»ìºÏµ÷Óᣠ</para> <para> - ÍÆ¼öʹÓøßÐÔÄܵÄÌæ´úº¯Êý£º<function>mysql_fetch_row</function>£¬<function>mysql_fetch_array</function> ºÍ - <function>mysql_fetch_object</function>¡£ + <example> + <title><function>mysql_result</function> Àý×Ó</title> + <programlisting role="php"> +<![CDATA[ +<?php + $link = mysql_connect("localhost", "mysql_user", "mysql_password") + or die("Could not connect: " . mysql_error()); + + $result = mysql_query("SELECT name FROM work.employee") + or die("Could not query: . mysql_error()); + + echo mysql_result($result,2); // outputs third employee's name + + mysql_close($link); +?> +]]> + </programlisting> + </example> + </para> + <para> + ÍÆ¼öʹÓøßÐÔÄܵÄÌæ´úº¯Êý£º<function>mysql_fetch_row</function>£¬<function>mysql_fetch_array</function>£¬<function>mysql_fetch_assoc</function> + ºÍ <function>mysql_fetch_object</function>¡£ </para> </refsect1> </refentry> Index: phpdoc-zh/reference/mysql/functions/mysql-select-db.xml diff -u phpdoc-zh/reference/mysql/functions/mysql-select-db.xml:1.1 phpdoc-zh/reference/mysql/functions/mysql-select-db.xml:1.2 --- phpdoc-zh/reference/mysql/functions/mysql-select-db.xml:1.1 Tue Mar 4 06:15:34 2003 +++ phpdoc-zh/reference/mysql/functions/mysql-select-db.xml Mon Aug 18 20:29:32 2003 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <!-- $Author: dallas $ --> -<!-- EN-Revision: 1.2 Maintainer: dallas Status: ready --> +<!-- EN-Revision: 1.4 Maintainer: dallas Status: ready --> <refentry id="function.mysql-select-db"> <refnamediv> <refname>mysql_select_db</refname> @@ -28,6 +28,24 @@ ÿ¸öÆäºóµÄ <function>mysql_query</function> µ÷Óö¼»á×÷ÓÃÓڻÊý¾Ý¿â¡£ + </para> + <para> + <example> + <title><function>mysql_select_db</function> Àý×Ó</title> + <programlisting role="php"> +<![CDATA[ +<?php + +$lnk = mysql_connect('localhost', 'mysql_user', 'mysql_password') + or die ('Not connected : ' . mysql_error()); + +// make foo the current db +mysql_select_db('foo', $lnk) or die ('Can\'t use foo : ' . mysql_error()); + +?> +]]> + </programlisting> + </example> </para> <para> ²Î¼û Index: phpdoc-zh/reference/mysql/functions/mysql-stat.xml diff -u phpdoc-zh/reference/mysql/functions/mysql-stat.xml:1.1 phpdoc-zh/reference/mysql/functions/mysql-stat.xml:1.2 --- phpdoc-zh/reference/mysql/functions/mysql-stat.xml:1.1 Tue Mar 4 06:15:34 2003 +++ phpdoc-zh/reference/mysql/functions/mysql-stat.xml Mon Aug 18 20:29:32 2003 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <!-- $Author: dallas $ --> -<!-- EN-Revision: 1.5 Maintainer: dallas Status: ready --> +<!-- EN-Revision: 1.7 Maintainer: dallas Status: ready --> <refentry id="function.mysql-stat"> <refnamediv> <refname>mysql_stat</refname> @@ -9,20 +9,20 @@ </refnamediv> <refsect1> <title>˵Ã÷</title> - <methodsynopsis> - <type>string</type><methodname>mysql_stat</methodname> - <methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam> - </methodsynopsis> + <methodsynopsis> + <type>string</type><methodname>mysql_stat</methodname> + <methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam> + </methodsynopsis> <para> <function>mysql_stat</function> ·µ»Øµ±Ç°·þÎñÆ÷״̬¡£ </para> <note> <para> - <function>mysql_stat</function> - Ŀǰֻ·µ»Ø - uptime£¬threads£¬queries£¬open tables£¬flush tables ºÍ queries per - second¡£ÒªµÃµ½ÆäËü״̬±äÁ¿µÄÍêÕûÁÐ±í£¬Ö»ÄÜʹÓà SQL ÃüÁî - SHOW STATUS¡£ + <function>mysql_stat</function> + Ŀǰֻ·µ»Ø + uptime£¬threads£¬queries£¬open tables£¬flush tables ºÍ queries per + second¡£ÒªµÃµ½ÆäËü״̬±äÁ¿µÄÍêÕûÁÐ±í£¬Ö»ÄÜʹÓà SQL ÃüÁî + SHOW STATUS¡£ </para> </note> <para> @@ -39,7 +39,8 @@ </programlisting> <para> ÒÔÉÏÀý×Ó½«²úÉúÈçÏÂÊä³ö£º - <screen> + </para> + <screen> <![CDATA[ Array ( @@ -53,8 +54,7 @@ [7] => Queries per second avg: 245.595 ) ]]> - </screen> - </para> + </screen> </example> </para> </refsect1> Index: phpdoc-zh/reference/mysql/functions/mysql-tablename.xml diff -u phpdoc-zh/reference/mysql/functions/mysql-tablename.xml:1.1 phpdoc-zh/reference/mysql/functions/mysql-tablename.xml:1.2 --- phpdoc-zh/reference/mysql/functions/mysql-tablename.xml:1.1 Tue Mar 4 06:15:34 2003 +++ phpdoc-zh/reference/mysql/functions/mysql-tablename.xml Mon Aug 18 20:29:32 2003 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <!-- $Author: dallas $ --> -<!-- EN-Revision: 1.5 Maintainer: dallas Status: ready --> +<!-- EN-Revision: 1.6 Maintainer: dallas Status: ready --> <refentry id="function.mysql-tablename"> <refnamediv> <refname>mysql_tablename</refname> @@ -9,11 +9,11 @@ </refnamediv> <refsect1> <title>˵Ã÷</title> - <methodsynopsis> - <type>string</type><methodname>mysql_tablename</methodname> - <methodparam><type>resource</type><parameter>result</parameter></methodparam> - <methodparam><type>int</type><parameter>i</parameter></methodparam> - </methodsynopsis> + <methodsynopsis> + <type>string</type><methodname>mysql_tablename</methodname> + <methodparam><type>resource</type><parameter>result</parameter></methodparam> + <methodparam><type>int</type><parameter>i</parameter></methodparam> + </methodsynopsis> <para> <function>mysql_tablename</function> ½ÓÊÜ Index: phpdoc-zh/reference/mysql/functions/mysql-thread-id.xml diff -u phpdoc-zh/reference/mysql/functions/mysql-thread-id.xml:1.1 phpdoc-zh/reference/mysql/functions/mysql-thread-id.xml:1.2 --- phpdoc-zh/reference/mysql/functions/mysql-thread-id.xml:1.1 Tue Mar 4 06:15:35 2003 +++ phpdoc-zh/reference/mysql/functions/mysql-thread-id.xml Mon Aug 18 20:29:32 2003 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <!-- $Author: dallas $ --> -<!-- EN-Revision: 1.5 Maintainer: dallas Status: ready --> +<!-- EN-Revision: 1.6 Maintainer: dallas Status: ready --> <refentry id="function.mysql-thread-id"> <refnamediv> <refname>mysql_thread_id</refname> @@ -21,6 +21,7 @@ ÖØÐÂÁ¬½ÓÉÏ£¬Ïß³Ì ID »á¸Ä±ä¡£ÕâÒâζ×Ų»ÄÜÈ¡µÃÏß³ÌµÄ ID ºó±£´æÆðÀ´±¸Óᣵ±ÐèÒªµÄʱºòÔÙÈ¥»ñȡ֮¡£ </para> + <para> <example> <title><function>mysql_thread_id</function> Àý×Ó</title> <programlisting role="php"> @@ -36,13 +37,14 @@ </programlisting> <para> ÒÔÉÏÀý×Ó½«²úÉúÈçÏÂÊä³ö£º - <screen> + </para> + <screen> <![CDATA[ current thread id is 73 ]]> - </screen> - </para> + </screen> </example> + </para> <para> ²Î¼û <function>mysql_ping</function> ºÍ Index: phpdoc-zh/reference/mysql/functions/mysql-unbuffered-query.xml diff -u phpdoc-zh/reference/mysql/functions/mysql-unbuffered-query.xml:1.2 phpdoc-zh/reference/mysql/functions/mysql-unbuffered-query.xml:1.3 --- phpdoc-zh/reference/mysql/functions/mysql-unbuffered-query.xml:1.2 Sun Apr 20 02:43:55 2003 +++ phpdoc-zh/reference/mysql/functions/mysql-unbuffered-query.xml Mon Aug 18 20:29:32 2003 @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="gb2312"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <!-- $Author: dallas $ --> -<!-- EN-Revision: 1.4 Maintainer: dallas Status: ready --> +<!-- EN-Revision: 1.6 Maintainer: dallas Status: ready --> <refentry id="function.mysql-unbuffered-query"> <refnamediv> <refname>mysql_unbuffered_query</refname> @@ -31,7 +31,7 @@ µÄºÃ´¦ÊÇÓдú¼ÛµÄ£ºÔÚ <function>mysql_unbuffered_query</function> ·µ»ØµÄ½á¹û¼¯Ö®Éϲ»ÄÜʹÓà - <function>mysql_num_rows</function>¡£´ËÍâÔÚÏò + <function>mysql_num_rows</function> ºÍ <function>mysql_data_seek</function>¡£´ËÍâÔÚÏò MySQL ·¢ËÍÒ»ÌõÐ嵀 SQL ²éѯ֮ǰ£¬±ØÐëÌáÈ¡µôËùÓÐ믧´æµÄ SQL ²éѯËù²úÉúµÄ½á¹ûÐС£
« previous php.doc.zh (#1641) next »