version 2004
PGSQL_GetAffectedRows (resID; affectedRows) Longint
| Parameter | Type | Description | |
| resID | Longint | Result ID returned by PGSQL_Execute | |
| affectedRows | Longint | Number of rows affected by query execution | |
| Function result | Longint | Error code (where 0 means no error) |
Description
The PGSQL_GetAffectedRows command gives the number of rows which have been affected by the last query execution (for example, DELETE sql statement). It returns an error code (Longint) where 0 means no error.
resID is a Longint that corresponds to the result ID returned by PGSQL_Execute.
affectedRows is a Longint that is returned which corresponds to the number of rows affected by the query execution.