MySQL :: MySQL 8.0 Reference Manual :: 27.4.3 Event Syntax (original) (raw)
version 8.0
9.3
9.2
9.1
9.0
8.4 current
5.7
MySQL 8.0 Reference Manual / ... / Stored Objects / Using the Event Scheduler / Event Syntax
27.4.3 Event Syntax
MySQL provides several SQL statements for working with scheduled events:
- New events are defined using the CREATE EVENT statement. See Section 15.1.13, “CREATE EVENT Statement”.
- The definition of an existing event can be changed by means of the ALTER EVENT statement. SeeSection 15.1.3, “ALTER EVENT Statement”.
- When a scheduled event is no longer wanted or needed, it can be deleted from the server by its definer using theDROP EVENT statement. SeeSection 15.1.25, “DROP EVENT Statement”. Whether an event persists past the end of its schedule also depends on its
ON COMPLETION
clause, if it has one. SeeSection 15.1.13, “CREATE EVENT Statement”.
An event can be dropped by any user having theEVENT privilege for the database on which the event is defined. SeeSection 27.4.6, “The Event Scheduler and MySQL Privileges”.
Related Documentation
MySQL 8.0 Release Notes
MySQL 8.0 Source Code Documentation
Download this Manual
PDF (US Ltr) - 43.3Mb
PDF (A4) - 43.4Mb
Man Pages (TGZ) - 296.5Kb
Man Pages (Zip) - 401.9Kb
Info (Gzip) - 4.3Mb
Info (Zip) - 4.3Mb
Excerpts from this Manual
MySQL Backup and Recovery
MySQL Globalization
MySQL Information Schema
MySQL Installation Guide
Security in MySQL
Starting and Stopping MySQL
MySQL and Linux/Unix
MySQL and Windows
MySQL and macOS
MySQL and Solaris
Building MySQL from Source
MySQL Restrictions and Limitations
MySQL Partitioning
MySQL Tutorial
MySQL Performance Schema
MySQL Replication
Using the MySQL Yum Repository
MySQL NDB Cluster 8.0