MySQL Forums
Forum List  »  Newbie

Re: How to delete millions of record in a loop
Posted by: Barry Galbraith
Date: November 17, 2016 12:29AM

>select count(*)
will always return exactly 1 row.
The VALUE of the count might change, but there will be 1 row containing the count value.

Best you'd find some other way to see how many rows are left, or just delete your rows in one go.

Good luck,
Barry.

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.