php - MySQL PDO Delete all rows returned by previous Select statment -
php - MySQL PDO Delete all rows returned by previous Select statment -
the initial select statement goes this, , homecoming x number of rows:
$query = $database->connection->prepare("select * table"); $query->execute(); while ($result = $query->fetch(pdo::fetch_assoc)) { } now want delete of rows returned in single statement without looping, exact rows returned since additional records may inserted during execution of script.
php pdo mysqli delete-row sql-delete
Comments
Post a Comment