mysql_free_result
释放结果内存
&mysql.alternative.note;
mysqli_free_result
Assign the value of &null; to the PDO object, or PDOStatement::closeCursor
&reftitle.description;
boolmysql_free_result
resourceresult
mysql_free_result 将释放所有与结果标识符
result 所关联的内存。
mysql_free_result
仅需要在考虑到返回很大的结果集时会占用多少内存时调用。在脚本结束后所有关联的内存都会被自动释放。
&return.success;
为向下兼容仍然可以使用
mysql_freeresult,但反对这样做。
&reftitle.parameters;
&mysql.result.description;
&reftitle.returnvalues;
&return.success;
If a non-resource is used for the result, an
error of level E_WARNING will be emitted. It's worth noting that
mysql_query only returns a resource
for SELECT, SHOW, EXPLAIN, and DESCRIBE queries.
&reftitle.examples;
A mysql_free_result example
]]>
&reftitle.notes;
&info.deprecated.alias;
mysql_freeresult
&reftitle.seealso;
mysql_query
is_resource