Suppose you have an existing MySQL event that has a comment. But the comment isn’t as helpful as you’d like it to be, and so you’d like to change it to something else.
This can be done easily with the ALTER EVENT
statement along with the COMMENT
clause. When we include the COMMENT
clause in the ALTER EVENT
statement, it replaces whatever comment was in the event with the new comment. If the event didn’t have a comment, then a new comment appears.