Re: help making event for auto delete of partitions
would this work:
DELIMITER $$
USE `mydb`$$
CREATE EVENT dump_log_partitions
ON SCHEDULE
EVERY 1 MONTH
STARTS '2012-07-01 00:05:00' -- edit the date
DO
BEGIN
DECLARE iMonth INTEGER;
SET iMonthSelect = Month(CURRENT_TIMESTAMP)-2;
call logg_recreate_partition( iMonthSelect );
END$$
Subject
Written By
Posted
Re: help making event for auto delete of partitions
June 05, 2012 05:05AM
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.