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

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

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html? -