hirokawa Sat Apr 20 20:49:56 2002 EDT
Added files:
/phpdoc/ja/reference/pgsql/functions pg-affected-rows.xml
Log:
added pg-affected-rows.xml in japanese manual.
Index: phpdoc/ja/reference/pgsql/functions/pg-affected-rows.xml
+++ phpdoc/ja/reference/pgsql/functions/pg-affected-rows.xml
<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision: 1.1 $ -->
<!-- splitted from ./en/functions/pgsql.xml, last change in rev 1.2 -->
<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 . " タプルが変更されました。";
?>
]]>
</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
-->