MENU
DELETE
DELETE | [LOW_PRIORITY] [QUICK] [IGNORE] FROM tbl_name [PARTITION (partition_name,...)] [WHERE where_condition] [ORDER BY ...] [LIMIT row_count] |
DELETE | [LOW_PRIORITY] [QUICK] [IGNORE] tbl_name[.*] [, tbl_name[.*]] ... FROM table_references [WHERE where_condition] |
DELETE | [LOW_PRIORITY] [QUICK] [IGNORE] FROM tbl_name[.*] [, tbl_name[.*]] ... USING table_references [WHERE where_condition] |
A DELETE statement returns the number of deleted rows. | |
LOW_PRIORITY, IGNORE, ORDER BY and LIMIT are the same as for UPDATE. | |
QUICK tells the storage engine not to merge the index leaves, which may speed up the deletion. |