[think\db\exception\PDOException]
SQLSTATE[HY000]: General error: 2014 Cannot execute queries while other unbuffered queries are active. Consider using PDOStatement::fetchAll(). Alternatively, if your code is onl
y ever going to run against mysql, you may enable query buffering by setting the PDO::MYSQL_ATTR_USE_BUFFERED_QUERY attribute.`
`
数据库链接时增加PDO::ATTR_EMULATE_PREPARES=>true
// 数据库连接参数
'params' => [PDO::MYSQL_ATTR_USE_BUFFERED_QUERY => true,PDO::ATTR_EMULATE_PREPARES=>true,],