📜  未命名的占位符 pdo - PHP 代码示例

📅  最后修改于: 2022-03-11 14:54:09.777000             🧑  作者: Mango

代码示例1
prepare($sql, array(PDO::ATTR_CURSOR => PDO::CURSOR_FWDONLY));
$sth->execute(array(':calories' => 150, ':couleur' => 'red'));
$red = $sth->fetchAll();
$sth->execute(array(':calories' => 175, ':couleur' => 'yellow'));
$yellow = $sth->fetchAll();
?>