pg_affected_rows
Returns number of affected records (tuples)
&reftitle.description;
intpg_affected_rows
resourceresult
pg_affected_rows returns the number of tuples
(instances/records/rows) affected by INSERT,
UPDATE, and DELETE
queries.
This function used to be called pg_cmdtuples.
&reftitle.parameters;
result
PostgreSQL query result resource, returned by pg_query,
pg_query_params or pg_execute
(among others).
&reftitle.returnvalues;
The number of rows affected by the query. If no tuple is
affected, it will return 0.
&reftitle.examples;
pg_affected_rows example
]]>
&example.outputs;
&reftitle.seealso;
pg_query
pg_query_params
pg_execute
pg_num_rows