mirror of
https://github.com/php/doc-zh.git
synced 2026-03-26 16:12:19 +01:00
git-svn-id: https://svn.php.net/repository/phpdoc/zh/trunk@97440 c90b9560-bf6c-de11-be94-00142212c4b1
50 lines
1.4 KiB
XML
Executable File
50 lines
1.4 KiB
XML
Executable File
<?xml version="1.0" encoding="gb2312"?>
|
|
<!-- $Revision: 1.2 $ -->
|
|
<!-- $Author: dallas $ -->
|
|
<!-- EN-Revision: 1.2 Maintainer: dallas Status: ready -->
|
|
<refentry id="function.pg-num-fields">
|
|
<refnamediv>
|
|
<refname>pg_num_fields</refname>
|
|
<refpurpose>返回字段的数目</refpurpose>
|
|
</refnamediv>
|
|
<refsect1>
|
|
<title>说明</title>
|
|
<methodsynopsis>
|
|
<type>int</type><methodname>pg_num_fields</methodname>
|
|
<methodparam><type>resource</type><parameter>result</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
<function>pg_num_fields</function> 返回 PostgreSQL <parameter>result</parameter> 中的字段(列)数目。参数是由 <function>pg_query</function> 函数返回的查询结果资源号。如果出错则返回 -1。
|
|
</para>
|
|
<note>
|
|
<para>
|
|
本函数以前的名字为 <literal>pg_numfields()</literal>。
|
|
</para>
|
|
</note>
|
|
<para>
|
|
参见 <function>pg_num_rows</function> 和 <function>pg_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
|
|
-->
|