手册:
14.2.2 DELETE Syntax
单表删除语句:
DELETE [LOW_PRIORITY] [QUICK] [IGNORE] FROMtbl_name
[PARTITION (partition_name
,...)] [WHEREwhere_condition
] [ORDER BY ...] [LIMITrow_count
]
由语法可知,要删除符合条件的指定数量的数据可再加上order by limit 数量。
如:
row_count(),检查删除的条数。
手册:
单表删除语句:
DELETE [LOW_PRIORITY] [QUICK] [IGNORE] FROMtbl_name
[PARTITION (partition_name
,...)] [WHEREwhere_condition
] [ORDER BY ...] [LIMITrow_count
]
由语法可知,要删除符合条件的指定数量的数据可再加上order by limit 数量。
如:
row_count(),检查删除的条数。