MySQL Forums
Forum List  »  Newbie

Re: Set DELETE Limit results in error 1064
Posted by: Peter Brawley
Date: December 20, 2016 12:50PM

LIMIT is supported only for single-table DELETE, see the manual page.

Does the timeout error cite lock-wait_timeout? If so, grow it.

The join could use some optimising, but it'll probably be quicker to form the deletion subset as an intermediary table, then delete from a join from wp_posts to the intermediary table.

Options: ReplyQuote


Subject
Written By
Posted
Re: Set DELETE Limit results in error 1064
December 20, 2016 12:50PM


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.