📜  sql 行数 php pdo - PHP 代码示例

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

代码示例1
prepare('DELETE FROM fruit');
$del->execute();

/* Return number of rows that were deleted */
print("Return number of rows that were deleted:\n");
$count = $del->rowCount();
print("Deleted $count rows.\n");
?>