MySQL删除表中大批量的数据
?
DELETE FROM osc_logs WHERE status=1 ORDER BY log_id LIMIT 10000;
然后分多次执行就可以把这1800万条记录成功删除。