function pg cmdtuples 5TICALUQCTKPP7VGJAYQOQDIHVPRLD24HYLQJQY
pg_cmdtuplesPodręcznik PHPPoprzedniNastępnypg_cmdtuples (PHP 3, PHP 4 >= 4.0.0)pg_cmdtuples -- Returns number of affected records(tuples)Descriptionint pg_cmdtuples (resource result)
pg_cmdtuples() returns the number of tuples
(instances/records/rows) affected by INSERT, UPDATE, and DELETE
queries executed by pg_exec(). If no tuple is
affected by this function, it will return 0.
Przykład 1. pg_cmdtuples()<?php
$result = pg_exec ($conn, "INSERT INTO publisher VALUES ('Author')");
$cmdtuples = pg_cmdtuples ($result);
echo $cmdtuples . " tuples are affected.";
?>
See also pg_exec() and
pg_numrows().
PoprzedniSpis treściNastępnypg_closePoczątek rozdziałupg_connect
Wyszukiwarka