Query: pg_free_result
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
PG_FREE_RESULT(3) PG_FREE_RESULT(3) pg_free_result - Free result memorySYNOPSISbool pg_free_result (resource $result)DESCRIPTIONpg_free_result(3) frees the memory and data associated with the specified PostgreSQL query result resource. This function need only be called if memory consumption during script execution is a problem. Otherwise, all result memory will be auto- matically freed when the script ends. Note This function used to be called pg_freeresult(3).PARAMETERSo $result - PostgreSQL query result resource, returned by pg_query(3), pg_query_params(3) or pg_execute(3) (among others).RETURN VALUESReturns TRUE on success or FALSE on failure.EXAMPLESExample #1 pg_free_result(3) example <?php $db = pg_connect("dbname=users user=me") || die(); $res = pg_query($db, "SELECT 1 UNION ALL SELECT 2"); $val = pg_fetch_result($res, 1, 0); echo "First field in the second row is: ", $val, " "; pg_free_result($res); ?> The above example will output: First field in the second row is: 2SEE ALSOpg_query(3), pg_query_params(3), pg_execute(3). PHP Documentation Group PG_FREE_RESULT(3)
Related Man Pages |
---|
pg_fetch_all(3) - php |
pg_fetch_row(3) - php |
pg_field_is_null(3) - php |
pg_field_name(3) - php |
pg_free_result(3) - php |
Similar Topics in the Unix Linux Community |
---|
Need to Output result to a non-delimitted file |
Problem in Passing sql query for a script |
To get the memory in MB |
Memory consumption issue in AIX box |
php script problem |