I want to schedule a copy of a table on every last day of the month. But I get an error on code line 4. What should be the correct code? The stored procedure for the table copy works fine.
DROP EVENT IF EXISTS `create_table_test_month`;
DELIMITER $$
CREATE EVENT `create_table_test_month`
ON SCHEDULE EVERY LAST_DAY(CURDATE() + INTERVAL 1 MONTH) STARTS '2022-03-31 23:30:00'
ON COMPLETION PRESERVE
DO BEGIN
call data.test_create_table();
END$$
DELIMITER ;
With kind regards,
Björn
