Home  >  Article  >  Backend Development  >  哪位高手知道这个异常提示是什么意思

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

WBOY
WBOYOriginal
2016-06-13 13:34:311608browse

谁知道这个错误提示是什么意思?
错误提示如下: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()

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn