| PHP » GoLang | login |
            register |
            
            about | 
| GoLang pg_affected_rows
                                request it (780)
                            GoLang replacement for PHP's pg_affected_rows
                            [edit | history] 
                             pg_affected_rows(PHP 4 >= 4.2.0, PHP 5, PHP 7) pg_affected_rows — Returns number of affected records (tuples) Description
   int pg_affected_rows
    ( resource  $result)pg_affected_rows() returns the number of tuples (instances/records/rows) affected by INSERT, UPDATE, and DELETE queries. Since PostgreSQL 9.0 and above, the server returns the number of SELECTed rows. Older PostgreSQL return 0 for SELECT. 
 Parameters
 
 Return ValuesThe number of rows affected by the query. If no tuple is affected, it will return 0. Examples
 Example #1 pg_affected_rows() example 
<?phpThe above example will output: 1 tuples are affected. See Also
 
 | 
                    more
                     Most requested
 
                    more
                     Last requests
 |