mirror of
https://github.com/php/doc-de.git
synced 2026-03-29 18:52:13 +02:00
git-svn-id: https://svn.php.net/repository/phpdoc/de/trunk@185601 c90b9560-bf6c-de11-be94-00142212c4b1
115 lines
2.9 KiB
XML
115 lines
2.9 KiB
XML
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
<!-- $Revision: 1.6 $ -->
|
|
<!-- EN-Revision: 1.9 Maintainer: conni Status: ready -->
|
|
<refentry id="function.pg-affected-rows">
|
|
<refnamediv>
|
|
<refname>pg_affected_rows</refname>
|
|
<refpurpose>Gibt die Anzahl betroffener Datensätze (Tupel) zurück</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type>int</type><methodname>pg_affected_rows</methodname>
|
|
<methodparam><type>resource</type><parameter>result</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
<function>pg_affected_rows</function> gibt die Anzahl der Tupels
|
|
(Instanzen/Datensätze/Zeilen) zurück, die von einer mit
|
|
<function>pg_query</function> ausgeführten <literal>INSERT</literal>-, <literal>UPDATE</literal>- oder
|
|
<literal>DELETE</literal>-Abfrage betroffen wurden.
|
|
</para>
|
|
<note>
|
|
<para>
|
|
Diese Funktion entspricht der Funktion <literal>pg_cmdtuples()</literal>.
|
|
</para>
|
|
</note>
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
<para>
|
|
<variablelist>
|
|
<varlistentry>
|
|
<term><parameter>result</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
PostgreSQL Ergebniskennung, die (unter anderem) von den
|
|
Funktionen <function>pg_query</function>,
|
|
<function>pg_query_params</function> oder
|
|
<function>pg_execute</function> zurückgegeben wird.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
Die Anzahl der Zeilen, die von der Abfrage betroffen wurden. Wurde
|
|
keine Zeile betroffen, wird 0 zurückgegeben.
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="examples">
|
|
&reftitle.examples;
|
|
<para>
|
|
<example>
|
|
<title><function>pg_affected_rows</function> Beispiel</title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
$result = pg_query($conn, "INSERT INTO authors VALUES ('Orwell', 2002, 'Animal Farm')");
|
|
|
|
$cmdtuples = pg_affected_rows($result);
|
|
|
|
echo $cmdtuples . " Zeile(n) wurden betroffen.\n";
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
&example.outputs;
|
|
<screen>
|
|
<![CDATA[
|
|
1 Zeile(n) wurden betroffen.
|
|
]]>
|
|
</screen>
|
|
</example>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="seealso">
|
|
&reftitle.seealso;
|
|
<para>
|
|
<simplelist>
|
|
<member><function>pg_query</function></member>
|
|
<member><function>pg_query_params</function></member>
|
|
<member><function>pg_execute</function></member>
|
|
<member><function>pg_num_rows</function></member>
|
|
</simplelist>
|
|
</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
|
|
-->
|