例子,pdo数据库类的delete操作,演示下php pdo类的用法。 代码:
//数据删除 $sql = "DELETE FROM `test` WHERE `id` > :id"; $stmt = $pdo->prepare($sql); $stmt->execute(array(':id' => 7));
echo $stmt->rowCount();
CopyRight © 2010-2021 脚本学堂 Jb200.com , All Rights Reserved.