首页  >  文章  >  后端开发  >  哪位高手知道这个异常提示是什么意思

哪位高手知道这个异常提示是什么意思

WBOY
WBOY原创
2016-06-13 10:18:48909浏览

谁知道这个错误提示是什么意思?
错误提示如下:SQLSTATE[HY000]: General error: 2014 Cannot execute queries while other unbuffered queries are active. Consider using PDOStatement::fetchAll(). Alternatively, if your code is only ever going to run against mysql, you may enable query buffering by setting the PDO::MYSQL_ATTR_USE_BUFFERED_QUERY attribute.这是什么原因?谢谢

------解决方案--------------------
http://www.flashj.cn/wp/pdo-transaction-err-in-php.html
------解决方案--------------------
If you do not fetch all of the data in a result set before issuing your next call to PDO::query(), your call may fail. Call PDOStatement::closeCursor() to release the database resources associated with the PDOStatement object before issuing your next call to PDO::query().

再次查询,要释放掉之前的查询。正如错误提示所说的:Consider using PDOStatement::fetchAll()

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn