DELETE
suggest changeSyntax
- DELETE [ LOW_PRIORITY ] [ QUICK ] [ IGNORE ] FROM table [WHERE conditions] [ORDER BY expression [ ASC | DESC ]] [LIMIT number_rows]; /// Syntax for delete row(s) from single table
Parameters
| Parameter | Details |
|---|---|
LOW_PRIORITY |
Delay the delete until no other clients are reading the table. This matters for table-level locking engines such as MyISAM. InnoDB row locks do not use it the same way. |
IGNORE |
Ignore errors that come up while deleting rows |
table |
The table to delete from |
WHERE conditions |
Rows must match these conditions. With no WHERE, every row is deleted |
ORDER BY |
Delete rows in this order. Meaningful together with LIMIT |
LIMIT |
Maximum number of rows to delete |
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents