MySQL DELETE Statement
Removing matching rows from table with optional ORDER BY and LIMIT clauses.
-- Delete specific record matching primary key DELETE FROM employees WHERE employee_id = 5; -- Delete oldest inactive logs with limit safety DELETE FROM audit_records WHERE event_time < '2025-01-01' ORDER BY record_id ASC LIMIT 10;
Query OK, 1 row affected (0.01 sec)