也許其他人也有同樣的問題比我。 我跑過來的錯誤: 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,
我做多更新一PDO::exec命令做高管時,是活躍: $MyPdo->setAttribute(PDO::MYSQL_ATTR_USE_BUFFERED_QUERY,true);
$MyPdo->exec("update t1 set f1=1;update t2 set f1=2");
我做它在事務中,我不斷收到以下錯誤: SQLSTATE[HY000]: General error: 2