$what = "(999,'string','string2'),(21,'aaaa','bbbbb'),(22,'ccccc','ddddd')";
include("../connect/pdoconnect.php");
try {
$sql = $db->prepare("INSERT INTO `bd_fortest` (`user_ID`, `picturename`, `picturepath`) VALUE :what");
$sql->execute(array(":what"=>$what));
}
catch(PDOException $e) {
echo "\nPDO::errorInfo():\n";
print_r($db->errorInfo());
}
$what 是 get-data-from-csv-function 的值,所以我们不知道它是多少。我自己试试,PDO不能做这个查询。我应该做什么查询?