mirror of
https://github.com/php/doc-zh.git
synced 2026-04-25 00:58:02 +02:00
9a2f55cb0a
git-svn-id: https://svn.php.net/repository/phpdoc/zh/trunk@97440 c90b9560-bf6c-de11-be94-00142212c4b1
55 lines
2.0 KiB
XML
Executable File
55 lines
2.0 KiB
XML
Executable File
<?xml version="1.0" encoding="gb2312"?>
|
||
<!-- $Revision: 1.2 $ -->
|
||
<!-- $Author: dallas $ -->
|
||
<!-- EN-Revision: 1.3 Maintainer: dallas Status: ready -->
|
||
<refentry id='function.pg-send-query'>
|
||
<refnamediv>
|
||
<refname>pg_send_query</refname>
|
||
<refpurpose>
|
||
发送异步查询
|
||
</refpurpose>
|
||
</refnamediv>
|
||
<refsect1>
|
||
<title>说明</title>
|
||
<methodsynopsis>
|
||
<type>bool</type><methodname>pg_send_query</methodname>
|
||
<methodparam><type>resource</type><parameter>connection</parameter></methodparam>
|
||
<methodparam><type>string</type><parameter>query</parameter></methodparam>
|
||
</methodsynopsis>
|
||
<methodsynopsis>
|
||
<type>bool</type><methodname>pg_send_query</methodname>
|
||
<methodparam><type>string</type><parameter>query</parameter></methodparam>
|
||
</methodsynopsis>
|
||
<para>
|
||
<function>pg_send_query</function> 向 <parameter>connection</parameter> 连接发送异步查询。和 <function>pg_query</function> 不同,它可以向 PostgreSQL 发送多个查询并用 <function>pg_get_result</function> 依次得到结果。当执行查询时脚本的执行不会被锁定。用 <function>pg_connection_busy</function> 来检查连接连接是否为忙(例如查询正在执行中)。调用 <function>pg_cancel_query</function> 则有可能取消查询。
|
||
</para>
|
||
<para>
|
||
尽管用户可以一次发送多个查询,但用户不能通过正忙的连接发送多个查询。如果向正忙的连接发送了查询,则会等待上一条查询结束并丢弃所有结果。
|
||
</para>
|
||
<para>
|
||
参见 <function>pg_query</function>,<function>pg_cancel_query</function>,<function>pg_get_result</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
|
||
-->
|