MySQL Forums
Forum List  »  Newbie

Re: help making event for auto delete of partitions
Posted by: Rick James
Date: June 15, 2012 06:03PM

This will fail in January and February:
SET iMonthSelect = Month(CURRENT_TIMESTAMP)-2;
-->
SET iMonthSelect = Month(CURRENT_DATE - INTERVAL 2 MONTH);

(There may be other issues.)

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.