📜  pdo prepare - PHP 代码示例

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

代码示例2
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();
?>