哪位高手知道这个异常提示是什么意思
程序员文章站
2024-01-11 08:30:46
...
谁知道这个错误提示是什么意思?
错误提示如下: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()
错误提示如下: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()
相关文章
相关视频
上一篇: C#调用ADOX创建ACCESS数据文件后关闭连接
下一篇: php上传图片客户端和服务器端实现方法