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

Popular posts from this blog

javascript - THREE.js reposition vertices for RingGeometry -

javascript - I need to update the text of a paragraph by inline edit -

assembly - What is the addressing mode for ld, add, and rjmp instructions? -