cvs: phpdoc-zh /reference/pgsql/functions pg-affected-rows.xml pg-cancel-query.xml pg-client-encoding.xml pg-close.xml pg-connect.xml
pg-connection-busy.xml
| From: | Dallas Thunder | Date: | Sat, 24 Aug 2002 05:49:02 +0000 |
| Subject: | cvs: phpdoc-zh /reference/pgsql/functions pg-affected-rows.xml pg-cancel-query.xml pg-client-encoding.xml pg-close.xml pg-connect.xml pg-connection-busy.xml |
||
| Groups: | php.doc.zh | ||
| Request: | Send a blank email to doc-zh+get-347@lists.php.net to get a copy of this message | ||
dallas Sat Aug 24 01:49:02 2002 EDT
Added files:
/phpdoc-zh/reference/pgsql/functions pg-affected-rows.xml
pg-cancel-query.xml
pg-client-encoding.xml
pg-close.xml pg-connect.xml
pg-connection-busy.xml
Log:
Translation completed.
Index: phpdoc-zh/reference/pgsql/functions/pg-affected-rows.xml +++ phpdoc-zh/reference/pgsql/functions/pg-affected-rows.xml <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.1 $ --> <!-- $Author: dallas $ --> <!-- EN-Revision: 1.2 Maintainer: dallas Status: ready --> <refentry id="function.pg-affected-rows"> <refnamediv> <refname>pg_affected_rows</refname> <refpurpose>·µ»ØÊÜÓ°ÏìµÄ¼Ç¼ÊýÄ¿</refpurpose> </refnamediv> <refsect1> <title>ÃèÊö</title> <methodsynopsis> <type>int</type><methodname>pg_affected_rows</methodname> <methodparam><type>resource</type><parameter>result</parameter></methodparam> </methodsynopsis> <para> <function>pg_affected_rows</function> ·µ»ØÔÚ <function>pg_query</function> ÖÐÖ´ÐÐ INSERT£¬UPDATE ºÍ DELETE ²éѯºóÊܵ½Ó°ÏìµÄ¼Ç¼ÊýÄ¿£¨°üÀ¨ÊµÀý£¯¼Ç¼£¯ÐУ©¡£Èç¹û±¾º¯ÊýûÓÐÓ°Ïìµ½ÈκμǼ£¬Ôò·µ»Ø 0¡£ <example> <title><function>pg_affected_rows</function></title> <programlisting role="php"> <![CDATA[ <?php $result = pg_query ($conn, "INSERT INTO publisher VALUES ('Author')"); $cmdtuples = pg_affected_rows ($result); echo $cmdtuples . " tuples are affected."; ?> ]]> </programlisting> </example> </para> <note> <para> ±¾º¯ÊýÒÔǰ±»³ÆÎª <literal>pg_cmdtuples()</literal>¡£ </para> </note> <para> ²Î¼û <function>pg_query</function> ºÍ <function>pg_num_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 --> Index: phpdoc-zh/reference/pgsql/functions/pg-cancel-query.xml +++ phpdoc-zh/reference/pgsql/functions/pg-cancel-query.xml <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.1 $ --> <!-- $Author: dallas $ --> <!-- EN-Revision: 1.4 Maintainer: dallas Status: ready --> <refentry id='function.pg-cancel-query'> <refnamediv> <refname>pg_cancel_query</refname> <refpurpose> È¡ÏûÒì²½²éѯ </refpurpose> </refnamediv> <refsect1> <title>ÃèÊö</title> <methodsynopsis> <type>bool</type><methodname>pg_cancel_query</methodname> <methodparam><type>resource</type><parameter>connection</parameter></methodparam> </methodsynopsis> <para> <function>pg_cancel_query</function> È¡ÏûÓÉ <function>pg_send_query</function> ·¢Ë͵ÄÒì²½²éѯ¡£²»ÄÜÈ¡ÏûÓÉ <function>pg_query</function> Ö´ÐеIJéѯ¡£ </para> <para> ²Î¼û <function>pg_send_query</function> ºÍ <function>pg_connection_busy</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/pgsql/functions/pg-client-encoding.xml +++ phpdoc-zh/reference/pgsql/functions/pg-client-encoding.xml <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.1 $ --> <!-- $Author: dallas $ --> <!-- EN-Revision: 1.2 Maintainer: dallas Status: ready --> <refentry id="function.pg-client-encoding"> <refnamediv> <refname>pg_client_encoding</refname> <refpurpose> È¡µÃ¿Í»§¶Ë±àÂë </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>string</type><methodname>pg_client_encoding</methodname> <methodparam choice="opt"><type>resource</type><parameter>connection</parameter></methodparam> </methodsynopsis> <para> <function>pg_client_encoding</function> ÒÔ×Ö·û´®ÐÎʽ·µ»Ø¿Í»§¶Ë±àÂë¡£Ëù·µ»ØµÄ×Ö·û´®ÎªÒÔÏÂÖ®Ò»£ºSQL_ASCII£¬EUC_JP£¬EUC_CN£¬EUC_KR£¬EUC_TW£¬UNICODE£¬MULE_INTERNAL£¬LATINX (X=1...9)£¬KOI8£¬WIN£¬ALT£¬SJIS£¬BIG5£¬WIN1250¡£ </para> <note> <para> ±¾º¯ÊýÐèÒª PHP-4.0.3 »òÒÔÉϰ汾ÒÔ¼° PostgreSQL-7.0 »òÒÔÉϰ汾¡£Èç¹ûÔÚ±àÒë libpq ʱûÓмÓÈë¶à×Ö½Ú±àÂëÖ§³Ö£¬Ôò <function>pg_set_client_encoding</function> ×ÜÊÇ·µ»Ø "SQL_ASCII"¡£ËùÖ§³ÖµÄ±àÂ뷽ʽȡ¾öÓÚ PostgreSQL µÄ°æ±¾¡£ÏêÇé²Î¼û PostgreSQL ÊÖ²áÈçºÎ¼ÓÈë¶à×Ö½ÚÖ§³ÖÒÔ¼°ËùÖ§³ÖµÄ±àÂ뷽ʽ¡£ </para> <para> ±¾º¯ÊýÒÔǰ±»³ÆÎª <function>pg_clientencoding</function>¡£ </para> </note> <para> ²Î¼û <function>pg_set_client_encoding</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/pgsql/functions/pg-close.xml +++ phpdoc-zh/reference/pgsql/functions/pg-close.xml <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.1 $ --> <!-- $Author: dallas $ --> <!-- EN-Revision: 1.2 Maintainer: dallas Status: ready --> <refentry id="function.pg-close"> <refnamediv> <refname>pg_close</refname> <refpurpose>¹Ø±ÕÒ»¸ö PostgreSQL Á¬½Ó</refpurpose> </refnamediv> <refsect1> <title>ÃèÊö</title> <methodsynopsis> <type>bool</type><methodname>pg_close</methodname> <methodparam><type>resource</type><parameter>connection</parameter></methodparam> </methodsynopsis> <para> <function>pg_close</function> ¹Ø±ÕÓÉËù¸ø×ÊÔ´ <parameter>connection</parameter> Ö¸¶¨µÄµ½ PostgreSQL Êý¾Ý¿âµÄ·Ç³Ö¾ÃÁ¬½Ó¡£&return.success; </para> <note> <para> ʹÓà <function>pg_close</function> ²¢²»ºÜ±ØÒª£¬ÒòΪ·Ç³Ö¾ÃÁ¬½ÓÔÚ±¾½Å±¾Ö´ÐнáÊøºó»á×Ô¶¯¹Ø±Õ¡£ </para> </note> <para> Èç¹ûÔÚ´ËÁ¬½ÓÖдò¿ªÁË large object ×ÊÔ´£¬ÔòÔڹرÕËùÓÐ large object ×ÊԴ֮ǰ²»Òª¹Ø±ÕÁ¬½Ó¡£ </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/pgsql/functions/pg-connect.xml +++ phpdoc-zh/reference/pgsql/functions/pg-connect.xml <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.1 $ --> <!-- $Author: dallas $ --> <!-- EN-Revision: 1.2 Maintainer: dallas Status: ready --> <refentry id="function.pg-connect"> <refnamediv> <refname>pg_connect</refname> <refpurpose>´ò¿ªÒ»¸ö PostgreSQL Á¬½Ó</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>resource</type><methodname>pg_connect</methodname> <methodparam><type>string</type><parameter>connection_string</parameter></methodparam> </methodsynopsis> <para> <function>pg_connect</function> ·µ»ØÆäËü PostgreSQL º¯ÊýËùÐèÒªµÄ×ÊÔ´¡£ </para> <para> <function>pg_connect</function> ´ò¿ªÒ»¸öÓÉ <parameter>connection_string</parameter> ËùÖ¸¶¨µÄ PostgreSQL Êý¾Ý¿âµÄÁ¬½Ó¡£Èç¹û³É¹¦Ôò·µ»ØÁ¬½Ó×ÊÔ´£¬Èç¹û²»ÄÜÁ¬½ÓÔò·µ»Ø &false;¡£<parameter>connection_string</parameter> Ó¦¸ÃÊÇÓÃÒýºÅÒýÆðÀ´µÄ×Ö·û´®¡£ <example> <title>ʹÓà pg_connect</title> <programlisting role="php"> <![CDATA[ <?php $dbconn = pg_connect ("dbname=mary"); //connect to a database named "mary" $dbconn2 = pg_connect ("host=localhost port=5432 dbname=mary"); // connect to a database named "mary" on "localhost" at port "5432" $dbconn3 = pg_connect ("host=sheep port=5432 dbname=mary user=lamb password=foo"); //connect to a database named "mary" on the host "sheep" with a username and password $conn_string = "host=sheep port=5432 dbname=test user=lamb password=bar"; $dbconn4 = pg_connect ($conn_string); //connect to a database named "test" on the host "sheep" with a username and password ?> ]]> </programlisting> </example> <parameter>connection_string</parameter> Ëù°üÀ¨µÄ²ÎÊýÓÐ <parameter>host</parameter>£¬<parameter>port</parameter>£¬<parameter>tty</parameter>, <parameter>options</parameter>£¬<parameter>dbname</parameter>, <parameter>user</parameter> ºÍ <parameter>password</parameter>¡£ </para> <para> Èç¹ûÓÃͬÑùµÄ <parameter>connection_string</parameter> Ôٴε÷Óà <function>pg_connect</function>£¬²»»á½¨Á¢ÐÂÁ¬½Ó£¬¶øÊÇ·µ»ØÇ°ÃæÒѾ´ò¿ªµÄÁ¬½Ó×ÊÔ´¡£Èç¹ûʹÓò»Í¬µÄÁ¬½Ó×Ö·û´®£¬Ôò¿ÉÒÔºÍͬһ¸öÊý¾Ý¿â½¨Á¢¶à¸öÁ¬½Ó¡£ </para> <para> ¾ÉµÄ¶à²ÎÊýÓï·¨ <command>$conn = pg_connect ("host", "port", "options", "tty", "dbname")</command> ÒѾ²»ÌᳫʹÓᣠ</para> <para> ²Î¼û <function>pg_pconnect</function>£¬<function>pg_close</function>£¬<function>pg_host</function>£¬<function>pg_port</function>, <function>pg_tty</function>£¬<function>pg_options</function> and <function>pg_dbname</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/pgsql/functions/pg-connection-busy.xml +++ phpdoc-zh/reference/pgsql/functions/pg-connection-busy.xml <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.1 $ --> <!-- $Author: dallas $ --> <!-- EN-Revision: 1.3 Maintainer: dallas Status: ready --> <refentry id='function.pg-connection-busy'> <refnamediv> <refname>pg_connection_busy</refname> <refpurpose> »ñÖªÁ¬½ÓÊÇ·ñΪæ </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>bool</type><methodname>pg_connection_busy</methodname> <methodparam><type>resource</type><parameter>connection</parameter></methodparam> </methodsynopsis> <para> <function>pg_connection_busy</function> ·µ»Ø &true;£¬Èç¹ûÁ¬½ÓæµÄ»°¡£Èç¹ûÁ¬½ÓΪæ£¬ËµÃ÷ǰһ¸ö²éѯÈÔÈ»ÔÚÖ´ÐС£Èç¹ûµ÷Óà <function>pg_get_result</function> º¯ÊýµÄ»°£¬Ôò»á±»ËøËÀ¡£ </para> <para> ²Î¼û <function>pg_connection_status</function> ºÍ <function>pg_get_result</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/pgsql/functions/pg-affected-rows.xml +++ phpdoc-zh/reference/pgsql/functions/pg-affected-rows.xml <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.1 $ --> <!-- $Author: dallas $ --> <!-- EN-Revision: 1.2 Maintainer: dallas Status: ready --> <refentry id="function.pg-affected-rows"> <refnamediv> <refname>pg_affected_rows</refname> <refpurpose>·µ»ØÊÜÓ°ÏìµÄ¼Ç¼ÊýÄ¿</refpurpose> </refnamediv> <refsect1> <title>ÃèÊö</title> <methodsynopsis> <type>int</type><methodname>pg_affected_rows</methodname> <methodparam><type>resource</type><parameter>result</parameter></methodparam> </methodsynopsis> <para> <function>pg_affected_rows</function> ·µ»ØÔÚ <function>pg_query</function> ÖÐÖ´ÐÐ INSERT£¬UPDATE ºÍ DELETE ²éѯºóÊܵ½Ó°ÏìµÄ¼Ç¼ÊýÄ¿£¨°üÀ¨ÊµÀý£¯¼Ç¼£¯ÐУ©¡£Èç¹û±¾º¯ÊýûÓÐÓ°Ïìµ½ÈκμǼ£¬Ôò·µ»Ø 0¡£ <example> <title><function>pg_affected_rows</function></title> <programlisting role="php"> <![CDATA[ <?php $result = pg_query ($conn, "INSERT INTO publisher VALUES ('Author')"); $cmdtuples = pg_affected_rows ($result); echo $cmdtuples . " tuples are affected."; ?> ]]> </programlisting> </example> </para> <note> <para> ±¾º¯ÊýÒÔǰ±»³ÆÎª <literal>pg_cmdtuples()</literal>¡£ </para> </note> <para> ²Î¼û <function>pg_query</function> ºÍ <function>pg_num_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 --> Index: phpdoc-zh/reference/pgsql/functions/pg-cancel-query.xml +++ phpdoc-zh/reference/pgsql/functions/pg-cancel-query.xml <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.1 $ --> <!-- $Author: dallas $ --> <!-- EN-Revision: 1.4 Maintainer: dallas Status: ready --> <refentry id='function.pg-cancel-query'> <refnamediv> <refname>pg_cancel_query</refname> <refpurpose> È¡ÏûÒì²½²éѯ </refpurpose> </refnamediv> <refsect1> <title>ÃèÊö</title> <methodsynopsis> <type>bool</type><methodname>pg_cancel_query</methodname> <methodparam><type>resource</type><parameter>connection</parameter></methodparam> </methodsynopsis> <para> <function>pg_cancel_query</function> È¡ÏûÓÉ <function>pg_send_query</function> ·¢Ë͵ÄÒì²½²éѯ¡£²»ÄÜÈ¡ÏûÓÉ <function>pg_query</function> Ö´ÐеIJéѯ¡£ </para> <para> ²Î¼û <function>pg_send_query</function> ºÍ <function>pg_connection_busy</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/pgsql/functions/pg-client-encoding.xml +++ phpdoc-zh/reference/pgsql/functions/pg-client-encoding.xml <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.1 $ --> <!-- $Author: dallas $ --> <!-- EN-Revision: 1.2 Maintainer: dallas Status: ready --> <refentry id="function.pg-client-encoding"> <refnamediv> <refname>pg_client_encoding</refname> <refpurpose> È¡µÃ¿Í»§¶Ë±àÂë </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>string</type><methodname>pg_client_encoding</methodname> <methodparam choice="opt"><type>resource</type><parameter>connection</parameter></methodparam> </methodsynopsis> <para> <function>pg_client_encoding</function> ÒÔ×Ö·û´®ÐÎʽ·µ»Ø¿Í»§¶Ë±àÂë¡£Ëù·µ»ØµÄ×Ö·û´®ÎªÒÔÏÂÖ®Ò»£ºSQL_ASCII£¬EUC_JP£¬EUC_CN£¬EUC_KR£¬EUC_TW£¬UNICODE£¬MULE_INTERNAL£¬LATINX (X=1...9)£¬KOI8£¬WIN£¬ALT£¬SJIS£¬BIG5£¬WIN1250¡£ </para> <note> <para> ±¾º¯ÊýÐèÒª PHP-4.0.3 »òÒÔÉϰ汾ÒÔ¼° PostgreSQL-7.0 »òÒÔÉϰ汾¡£Èç¹ûÔÚ±àÒë libpq ʱûÓмÓÈë¶à×Ö½Ú±àÂëÖ§³Ö£¬Ôò <function>pg_set_client_encoding</function> ×ÜÊÇ·µ»Ø "SQL_ASCII"¡£ËùÖ§³ÖµÄ±àÂ뷽ʽȡ¾öÓÚ PostgreSQL µÄ°æ±¾¡£ÏêÇé²Î¼û PostgreSQL ÊÖ²áÈçºÎ¼ÓÈë¶à×Ö½ÚÖ§³ÖÒÔ¼°ËùÖ§³ÖµÄ±àÂ뷽ʽ¡£ </para> <para> ±¾º¯ÊýÒÔǰ±»³ÆÎª <function>pg_clientencoding</function>¡£ </para> </note> <para> ²Î¼û <function>pg_set_client_encoding</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/pgsql/functions/pg-close.xml +++ phpdoc-zh/reference/pgsql/functions/pg-close.xml <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.1 $ --> <!-- $Author: dallas $ --> <!-- EN-Revision: 1.2 Maintainer: dallas Status: ready --> <refentry id="function.pg-close"> <refnamediv> <refname>pg_close</refname> <refpurpose>¹Ø±ÕÒ»¸ö PostgreSQL Á¬½Ó</refpurpose> </refnamediv> <refsect1> <title>ÃèÊö</title> <methodsynopsis> <type>bool</type><methodname>pg_close</methodname> <methodparam><type>resource</type><parameter>connection</parameter></methodparam> </methodsynopsis> <para> <function>pg_close</function> ¹Ø±ÕÓÉËù¸ø×ÊÔ´ <parameter>connection</parameter> Ö¸¶¨µÄµ½ PostgreSQL Êý¾Ý¿âµÄ·Ç³Ö¾ÃÁ¬½Ó¡£&return.success; </para> <note> <para> ʹÓà <function>pg_close</function> ²¢²»ºÜ±ØÒª£¬ÒòΪ·Ç³Ö¾ÃÁ¬½ÓÔÚ±¾½Å±¾Ö´ÐнáÊøºó»á×Ô¶¯¹Ø±Õ¡£ </para> </note> <para> Èç¹ûÔÚ´ËÁ¬½ÓÖдò¿ªÁË large object ×ÊÔ´£¬ÔòÔڹرÕËùÓÐ large object ×ÊԴ֮ǰ²»Òª¹Ø±ÕÁ¬½Ó¡£ </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/pgsql/functions/pg-connect.xml +++ phpdoc-zh/reference/pgsql/functions/pg-connect.xml <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.1 $ --> <!-- $Author: dallas $ --> <!-- EN-Revision: 1.2 Maintainer: dallas Status: ready --> <refentry id="function.pg-connect"> <refnamediv> <refname>pg_connect</refname> <refpurpose>´ò¿ªÒ»¸ö PostgreSQL Á¬½Ó</refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>resource</type><methodname>pg_connect</methodname> <methodparam><type>string</type><parameter>connection_string</parameter></methodparam> </methodsynopsis> <para> <function>pg_connect</function> ·µ»ØÆäËü PostgreSQL º¯ÊýËùÐèÒªµÄ×ÊÔ´¡£ </para> <para> <function>pg_connect</function> ´ò¿ªÒ»¸öÓÉ <parameter>connection_string</parameter> ËùÖ¸¶¨µÄ PostgreSQL Êý¾Ý¿âµÄÁ¬½Ó¡£Èç¹û³É¹¦Ôò·µ»ØÁ¬½Ó×ÊÔ´£¬Èç¹û²»ÄÜÁ¬½ÓÔò·µ»Ø &false;¡£<parameter>connection_string</parameter> Ó¦¸ÃÊÇÓÃÒýºÅÒýÆðÀ´µÄ×Ö·û´®¡£ <example> <title>ʹÓà pg_connect</title> <programlisting role="php"> <![CDATA[ <?php $dbconn = pg_connect ("dbname=mary"); //connect to a database named "mary" $dbconn2 = pg_connect ("host=localhost port=5432 dbname=mary"); // connect to a database named "mary" on "localhost" at port "5432" $dbconn3 = pg_connect ("host=sheep port=5432 dbname=mary user=lamb password=foo"); //connect to a database named "mary" on the host "sheep" with a username and password $conn_string = "host=sheep port=5432 dbname=test user=lamb password=bar"; $dbconn4 = pg_connect ($conn_string); //connect to a database named "test" on the host "sheep" with a username and password ?> ]]> </programlisting> </example> <parameter>connection_string</parameter> Ëù°üÀ¨µÄ²ÎÊýÓÐ <parameter>host</parameter>£¬<parameter>port</parameter>£¬<parameter>tty</parameter>, <parameter>options</parameter>£¬<parameter>dbname</parameter>, <parameter>user</parameter> ºÍ <parameter>password</parameter>¡£ </para> <para> Èç¹ûÓÃͬÑùµÄ <parameter>connection_string</parameter> Ôٴε÷Óà <function>pg_connect</function>£¬²»»á½¨Á¢ÐÂÁ¬½Ó£¬¶øÊÇ·µ»ØÇ°ÃæÒѾ´ò¿ªµÄÁ¬½Ó×ÊÔ´¡£Èç¹ûʹÓò»Í¬µÄÁ¬½Ó×Ö·û´®£¬Ôò¿ÉÒÔºÍͬһ¸öÊý¾Ý¿â½¨Á¢¶à¸öÁ¬½Ó¡£ </para> <para> ¾ÉµÄ¶à²ÎÊýÓï·¨ <command>$conn = pg_connect ("host", "port", "options", "tty", "dbname")</command> ÒѾ²»ÌᳫʹÓᣠ</para> <para> ²Î¼û <function>pg_pconnect</function>£¬<function>pg_close</function>£¬<function>pg_host</function>£¬<function>pg_port</function>, <function>pg_tty</function>£¬<function>pg_options</function> and <function>pg_dbname</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/pgsql/functions/pg-connection-busy.xml +++ phpdoc-zh/reference/pgsql/functions/pg-connection-busy.xml <?xml version="1.0" encoding="gb2312"?> <!-- $Revision: 1.1 $ --> <!-- $Author: dallas $ --> <!-- EN-Revision: 1.3 Maintainer: dallas Status: ready --> <refentry id='function.pg-connection-busy'> <refnamediv> <refname>pg_connection_busy</refname> <refpurpose> »ñÖªÁ¬½ÓÊÇ·ñΪæ </refpurpose> </refnamediv> <refsect1> <title>Description</title> <methodsynopsis> <type>bool</type><methodname>pg_connection_busy</methodname> <methodparam><type>resource</type><parameter>connection</parameter></methodparam> </methodsynopsis> <para> <function>pg_connection_busy</function> ·µ»Ø &true;£¬Èç¹ûÁ¬½ÓæµÄ»°¡£Èç¹ûÁ¬½ÓΪæ£¬ËµÃ÷ǰһ¸ö²éѯÈÔÈ»ÔÚÖ´ÐС£Èç¹ûµ÷Óà <function>pg_get_result</function> º¯ÊýµÄ»°£¬Ôò»á±»ËøËÀ¡£ </para> <para> ²Î¼û <function>pg_connection_status</function> ºÍ <function>pg_get_result</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 -->