本文介绍了pdo免费结果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
php中有一个名为 mysql_free_result()的mysql函数;我找不到PDO的任何类似功能.
there is a mysql function in php called mysql_free_result();I couln't find any similar function for PDO.
是否有一个pdo函数来释放数据库获取的结果,或者当我调用$stmt->fetch()
数据时是否自动请求并释放结果集?
is there a pdo function to free the result of a database fetch or does the result set automatically get requested and freed when I call $stmt->fetch()
data?
有人可以向我解释一下本机mysql和pdo之间的区别吗?
could someone explain me this difference between native mysql and pdo?
推荐答案
最近的方法是PDO语句的关闭光标.
closest method is close cursor for PDO statements.
http://us.php.net/manual/en/pdostatement. closecursor.php
这篇关于pdo免费结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!