php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容

源代码在线查看: function.pg-free-result.html

软件大小: 3633 K
上传用户: fengkuangyidao
关键词: php PHP 文档 实际应用
下载地址: 免注册下载 普通下载 VIP

相关代码

												 				  Free result memory				  				 				 				 pg_field_type				 pg_get_notify				 PostgreSQL Functions				 PHP Manual								 				  pg_free_result 				  (PHP 4 >= 4.2.0, PHP 5)pg_free_result — Free result memory								 								 				  Description				  				   bool pg_free_result				    ( resource $result				   )								  				   pg_free_result() 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 automatically freed when the script ends.				  				  Note: 				   				    This function used to be called pg_freeresult().				   				  				 												 				  Parameters				  				   								    								     result												     								      				       PostgreSQL query result resource, returned by pg_query(),				       pg_query_params() or pg_execute()				       (among others).				      				     								    								   								  				 												 				  Return Values				  				   Returns TRUE on success or FALSE on failure.				  				 												 				  Examples				  				   				    Example #1 pg_free_result() 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, "\n";pg_free_result($res);?>												    								    The above example will output:				    								First field in the second row is: 2								    				   				  				 												 				  See Also				  				   				    pg_query()				    pg_query_params()				    pg_execute()				   				  				 												 pg_field_type				 pg_get_notify				 PostgreSQL Functions				 PHP Manual											

相关资源