MySQL Forums
Forum List  »  Newbie

Re: How to delete millions of record in a loop
Posted by: Phillip Ward
Date: November 16, 2016 07:52AM

Redefine the statement delimiter so that MySql processes the entire procedure as a single unit.
http://dev.mysql.com/doc/refman/5.7/en/stored-programs-defining.html

delimiter //

create procedure . . . 
. . . 
end;
//

delimiter ;


However, instead of all that ,can you not simply "Truncate" the table?
http://dev.mysql.com/doc/refman/5.7/en/truncate-table.html

Regards, Phill W.

Options: ReplyQuote




Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.