完成任务后立即丢弃 Mysql 事件

Drop Mysql Event as soon as it completes the task

美好的一天。我试图找到任何文档,但我没有找到任何文档,也没有找到对我实际需要执行事件的情况的解释,并且在给定查询语句中执行事件后必须删除事件。

       $deleteEvent = mysqli_query($connection, "CREATE EVENT deletePareticipants
ON SCHEDULE AT CURRENT_TIMESTAMP + INTERVAL 1 HOUR
ON COMPLETION PRESERVE
DO 
   BEGIN
      DELETE FROM mafia_room_participants WHERE room_id='$roomId';

      END");

这是活动,我将 ON COMPLETION PRESERVE 设为 Mysql Documentation stated this

Message: Event execution time is in the past and ON COMPLETION NOT PRESERVE is set. The event was dropped immediately after creation.

它说在创建后立即......这是否意味着 mysql 事件在没有实际 运行 指定查询的情况下被丢弃?我只需要查询发生并在查询发生后立即删除该事件。

有什么想法吗?

完成保留

删除此行