cvs: phpdoc-zh /reference/mysql/functions mysql-free-result.xml mysql-get-client-info.xml mysql-get-host-info.xml mysql-get-proto-info.xml
mysql-get-server-info.xml mysql-info.xml

From: Date: Fri, 28 Feb 2003 07:58:40 +0000
Subject: cvs: phpdoc-zh /reference/mysql/functions mysql-free-result.xml mysql-get-client-info.xml mysql-get-host-info.xml mysql-get-proto-info.xml
mysql-get-server-info.xml mysql-info.xml
Groups: php.doc.zh 
Request: Send a blank email to doc-zh+get-1148@lists.php.net to get a copy of this message
dallas Fri Feb 28 02:58:40 2003 EDT Added files: /phpdoc-zh/reference/mysql/functions mysql-free-result.xml mysql-get-client-info.xml mysql-get-host-info.xml mysql-get-proto-info.xml mysql-get-server-info.xml mysql-info.xml Log: Completed.

Index: phpdoc-zh/reference/mysql/functions/mysql-free-result.xml +++ phpdoc-zh/reference/mysql/functions/mysql-free-result.xml <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.1 $ --> <!-- $Author: dallas $ --> <!-- EN-Revision: 1.2 Maintainer: dallas Status: ready --> <refentry id="function.mysql-free-result"> <refnamediv> <refname>mysql_free_result</refname> <refpurpose>ÊͷŽá¹ûÄÚ´æ</refpurpose> </refnamediv> <refsect1> <title>˵Ã÷</title> <methodsynopsis> <type>bool</type><methodname>mysql_free_result</methodname> <methodparam><type>resource</type><parameter>result</parameter></methodparam> </methodsynopsis> <para> <function>mysql_free_result</function> ½«ÊÍ·ÅËùÓÐÓë½á¹û±êʶ·û <parameter>result</parameter> Ëù¹ØÁªµÄÄÚ´æ¡£ </para> <para> <function>mysql_free_result</function> ½öÐèÒªÔÚ¿¼Âǵ½·µ»ØºÜ´óµÄ½á¹û¼¯Ê±»áÕ¼ÓöàÉÙÄÚ´æÊ±µ÷Óá£Ôڽű¾½áÊøºóËùÓйØÁªµÄÄÚ´æ¶¼»á±»×Ô¶¯ÊÍ·Å¡£ <!-- TODO and as of PHP4 before, see freeing resources --> </para> <para> &return.success; </para> <para> ΪÏòϼæÈÝÈÔÈ»¿ÉÒÔʹÓà <function>mysql_freeresult</function>£¬µ«·´¶ÔÕâÑù×ö¡£ </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-zh/reference/mysql/functions/mysql-get-client-info.xml +++ phpdoc-zh/reference/mysql/functions/mysql-get-client-info.xml <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.1 $ --> <!-- $Author: dallas $ --> <!-- EN-Revision: 1.3 Maintainer: dallas Status: ready --> <refentry id="function.mysql-get-client-info"> <refnamediv> <refname>mysql_get_client_info</refname> <refpurpose>È¡µÃ MySQL ¿Í»§¶ËÐÅÏ¢</refpurpose> </refnamediv> <refsect1> <title>˵Ã÷</title> <methodsynopsis> <type>string</type><methodname>mysql_get_client_info</methodname> <void/> </methodsynopsis> <para> <function>mysql_get_client_info</function> ·µ»ØÒ»¸ö×Ö·û´®Ö¸³öÁ˿ͻ§¶Ë¿âµÄ°æ±¾¡£ </para> <example> <title>mysql_get_client_info Àý×Ó</title> <programlisting role="php"> <![CDATA[ <?php printf ("MySQL client info: %s\n", mysql_get_client_info()); ?> ]]> </programlisting> <para> ÒÔÉÏÀý×Ó½«²úÉúÈçÏÂÊä³ö£º </para> <screen> <![CDATA[ MySQL client info: 3.23.39 ]]> </screen> </example> <para> ²Î¼û <function>mysql_get_host_info</function>£¬<function>mysql_get_proto_info</function> ºÍ <function>mysql_get_server_info</function>¡£ </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-zh/reference/mysql/functions/mysql-get-host-info.xml +++ phpdoc-zh/reference/mysql/functions/mysql-get-host-info.xml <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.1 $ --> <!-- $Author: dallas $ --> <!-- EN-Revision: 1.5 Maintainer: dallas Status: ready --> <refentry id="function.mysql-get-host-info"> <refnamediv> <refname>mysql_get_host_info</refname> <refpurpose>È¡µÃ MySQL Ö÷»úÐÅÏ¢</refpurpose> </refnamediv> <refsect1> <title>˵Ã÷</title> <methodsynopsis> <type>string</type><methodname>mysql_get_host_info</methodname> <methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam> </methodsynopsis> <para> <function>mysql_get_host_info</function> ·µ»ØÒ»¸ö×Ö·û´®ËµÃ÷ÁËÁ¬½Ó <parameter>link_identifier</parameter> ËùʹÓõÄÁ¬½Ó·½Ê½£¬°üÀ¨·þÎñÆ÷µÄÖ÷»úÃû¡£Èç¹ûÊ¡ÂÔ <parameter>link_identifier</parameter>£¬ÔòʹÓÃÉÏÒ»¸ö´ò¿ªµÄÁ¬½Ó¡£ </para> <example> <title>mysql_get_host_info Àý×Ó</title> <programlisting role="php"> <![CDATA[ <?php mysql_connect("localhost", "mysql_user", "mysql_password") or die("Could not connect: " . mysql_error()); printf ("MySQL host info: %s\n", mysql_get_host_info()); ?> ]]> </programlisting> <para> ÒÔÉÏÀý×Ó½«²úÉúÈçÏÂÊä³ö£º </para> <screen> <![CDATA[ MySQL host info: Localhost via UNIX socket ]]> </screen> </example> <para> ²Î¼û <function>mysql_get_client_info</function>£¬<function>mysql_get_proto_info</function> ºÍ <function>mysql_get_server_info</function>¡£ </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-zh/reference/mysql/functions/mysql-get-proto-info.xml +++ phpdoc-zh/reference/mysql/functions/mysql-get-proto-info.xml <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.1 $ --> <!-- $Author: dallas $ --> <!-- EN-Revision: 1.6 Maintainer: dallas Status: ready --> <refentry id="function.mysql-get-proto-info"> <refnamediv> <refname>mysql_get_proto_info</refname> <refpurpose>È¡µÃ MySQL ЭÒéÐÅÏ¢</refpurpose> </refnamediv> <refsect1> <title>˵Ã÷</title> <methodsynopsis> <type>int</type><methodname>mysql_get_proto_info</methodname> <methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam> </methodsynopsis> <para> <function>mysql_get_proto_info</function> ·µ»Ø <parameter>link_identifier</parameter> ËùʹÓõÄЭÒé°æ±¾¡£Èç¹ûÊ¡ÂÔ <parameter>link_identifier</parameter>£¬ÔòʹÓÃÉÏÒ»¸ö´ò¿ªµÄÁ¬½Ó¡£ </para> <example> <title>mysql_get_proto_info Àý×Ó</title> <programlisting role="php"> <![CDATA[ <?php mysql_connect("localhost", "mysql_user", "mysql_password") or die("Could not connect: " . mysql_error()); printf ("MySQL protocol version: %s\n", mysql_get_proto_info()); ?> ]]> </programlisting> <para> ÒÔÉÏÀý×Ó½«²úÉúÈçÏÂÊä³ö£º </para> <screen> <![CDATA[ MySQL protocol version: 10 ]]> </screen> </example> <para> ²Î¼û <function>mysql_get_client_info</function>£¬<function>mysql_get_host_info</function> ºÍ <function>mysql_get_server_info</function>¡£ </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-zh/reference/mysql/functions/mysql-get-server-info.xml +++ phpdoc-zh/reference/mysql/functions/mysql-get-server-info.xml <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.1 $ --> <!-- $Author: dallas $ --> <!-- EN-Revision: 1.5 Maintainer: dallas Status: ready --> <refentry id="function.mysql-get-server-info"> <refnamediv> <refname>mysql_get_server_info</refname> <refpurpose>È¡µÃ MySQL ·þÎñÆ÷ÐÅÏ¢</refpurpose> </refnamediv> <refsect1> <title>˵Ã÷</title> <methodsynopsis> <type>string</type><methodname>mysql_get_server_info</methodname> <methodparam choice="opt"><type>resource</type><parameter>link_identifier</parameter></methodparam> </methodsynopsis> <para> <function>mysql_get_server_info</function> ·µ»Ø <parameter>link_identifier</parameter> ËùʹÓõķþÎñÆ÷°æ±¾¡£Èç¹ûÊ¡ÂÔ <parameter>link_identifier</parameter>£¬ÔòʹÓÃÉÏÒ»¸ö´ò¿ªµÄÁ¬½Ó¡£ </para> <example> <title>mysql_get_server_info Àý×Ó</title> <programlisting role="php"> <![CDATA[ <?php mysql_connect("localhost", "mysql_user", "mysql_password") or die("Could not connect: " . mysql_error()); printf ("MySQL server version: %s\n", mysql_get_server_info()); ?> ]]> </programlisting> <para> ÒÔÉÏÀý×Ó½«²úÉúÈçÏÂÊä³ö£º </para> <screen> <![CDATA[ MySQL server version: 4.0.1-alpha ]]> </screen> </example> <para> ²Î¼û <function>mysql_get_client_info</function>£¬<function>mysql_get_host_info</function> ºÍ <function>mysql_get_proto_info</function>¡£ </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 --> Index: phpdoc-zh/reference/mysql/functions/mysql-info.xml +++ phpdoc-zh/reference/mysql/functions/mysql-info.xml <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.1 $ --> <!-- $Author: dallas $ --> <!-- EN-Revision: 1.3 Maintainer: dallas Status: ready --> <refentry id="function.mysql-info"> <refnamediv> <refname>mysql_info</refname> <refpurpose> È¡µÃ×î½üÒ»Ìõ²éѯµÄÐÅÏ¢ </refpurpose> </refnamediv> <refsect1> <title>˵Ã÷</title> <methodsynopsis> <type>string</type><methodname>mysql_info</methodname> <methodparam choice="opt"><type>resource</type><parameter> link_identifier </parameter></methodparam> </methodsynopsis> <para> <function>mysql_info</function> ·µ»ØÍ¨¹ý¸ø¶¨µÄ <parameter>link_identifier</parameter> Ëù½øÐеÄ×îÐÂÒ»Ìõ²éѯµÄÏêϸÐÅÏ¢¡£Èç¹ûûÓÐÖ¸¶¨ <parameter>link_identifier</parameter>£¬Ôò¼Ù¶¨ÎªÉÏÒ»¸ö´ò¿ªµÄÁ¬½Ó¡£ </para> <para> <function>mysql_info</function> ¶ÔÒÔÏÂÁгöµÄËùÓÐÓï¾ä·µ»ØÒ»¸ö×Ö·û´®¡£¶ÔÓÚÆäËüÈκÎÓï¾ä·µ»Ø &false;¡£×Ö·û´®µÄ¸ñʽȡ¾öÓÚ¸ø³öµÄÓï¾ä¡£ <example> <title>Ïà¹ØµÄ MySQL Óï¾ä</title> <programlisting role="mysql"> <![CDATA[ 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 ]]> </programlisting> </example> ÉÏÀýÖеÄÊý×ÖÖ»ÊÇΪÁËÑÝʾµÄÄ¿µÄ£¬Êµ¼ÊµÄֵȡ¾öÓÚ²éѯ¡£ </para> <note> <para> <function>mysql_info</function> ¶ÔÓÚ INSERT ... VALUES Óï¾ä½öÔÚ¸ÃÓï¾äÖÐÁгöÁ˶à¸öÖµµÄÇé¿öÏ·µ»ØÒ»¸ö·Ç &false; µÄÖµ¡£ </para> </note> <para> ²Î¼û <function>mysql_affected_rows</function>¡£ </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"../../../../manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->
« previous php.doc.zh (#1148) next »