批量删除2000w数据 使用delete from table太慢 //DELIMITER DROP PROCEDURE if EXISTS deleteManyTable; create PROCEDURE deleteManyTable() BEGIN DECLARE i int; ; DO ) ; SELECT SLEEP(0.5); ; end while; END; //DELIMITER CALL deleteManyTable(); 参考文献: http://mysql.rjweb…