Executing prepared PDO statement gives “General error: 10 disk I/O error” (PHP)

拈花ヽ惹草 提交于 2019-12-24 12:09:06

问题


            $sql = "REPLACE INTO `myTable` VALUES (:symbol1, :symbol1), (:symbol1, :symbol2)";
            $statement = $this->pdoObject->prepare($sql);
            $statement->execute(array(':symbol1' => $symbol1, ':symbol2' => $symbol2));

The above throws a PDOException:

SQLSTATE[HY000]: General error: 10 disk I/O error

I don't see an error in the statement.

来源:https://stackoverflow.com/questions/33607983/executing-prepared-pdo-statement-gives-general-error-10-disk-i-o-error-php

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!