Note You can use the REGISTER EVENT statement only inside stored procedures. For more details, see CREATE PROCEDURE.
Access requirements
Database user
Usage
In a stored procedure, use the REGISTER EVENT statement to be notified of all future occurrences of a specified event, even if you are not yet waiting for the event.
You do not need to register for every event before waiting for it, see WAIT EVENT. When you wait on an event, you are registered implicitly for that event (if you did not already explicitly register for it). Therefore you only need to explicitly register events if you want them to start being queued now but you do not want to start waiting for them until later.