Returns the number of rows affected by the SQL command.
This function returns a string containning the number of rows affected by the SQL statement that generated the
PGresult. This function can only be used following the execution of aSELECT,CREATE,TABLE AS,INSERT,UPDATE,DELETE,MERGE,MOVE,FETCH, orCOPYstatement, or anEXECUTEof a prepared query that contains anINSERT,UPDATE,DELETE, orMERGEstatement. IF the command that generated thePGresultwas anything else,PQcmdTuplesreturns an empty string. The caller should not free the return value directly. It will be freed when the associatedPGresulthandle is passed to PQclear.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(c_ptr), | intent(in) | :: | pgresult |