PDO执行execute方法后无任何返回,通过try catch 得到如下异常信息

来源:互联网 发布:手机网游破解软件 编辑:程序博客网 时间:2024/06/06 12:23

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.

解决方法:

$stmt->closeCursor();

阅读全文
0 0
原创粉丝点击