哪位高手知道这个异常提示是什么意思
Jun 13, 2016 pm 01:34 PM
谁知道这个错误提示是什么意思?
错误提示如下: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()

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Solution to PHP Fatal error: Call to undefined method PDO::prepare() in

How to use PHP's PDO_PGSQL extension?

PHP and PDO: How to perform bulk inserts and updates

How to connect to Redis database using PDO

PHP and PDO: How to perform paging queries and display data

PHP and PDO: How to handle JSON data in a database

PHP and PDO: How to perform database backup and restore operations

How to reorder multiple columns in Power Query via drag and drop
