pg_cmdTuplesPHP ManualPrevNextpg_cmdTuplespg_cmdTuples -- returns number of affected tuplesDescriptionint pg_cmdtuples(int result_id);
pg_cmdTuples() returns the number of tuples
(instances) affected by INSERT, UPDATE, and DELETE queries. If no
tuple is affected the function will return 0.
Example 1. pg_cmdtuples 1
2 <?php
3 $result = pg_exec($conn, "INSERT INTO verlag VALUES ('Autor')");
4 $cmdtuples = pg_cmdtuples($result);
5 echo $cmdtuples . " <- cmdtuples affected.";
6 ?>
7
PrevHomeNextpg_CloseUppg_Connect
Wyszukiwarka