I had an interesting problem. I would like to create two triggers, trigger1 will fire on DROP TABLE and trigger2 on ALTER TABLE . I would like trigger1 and trigger2 to fire if any table has been deleted or modified, but unfortunately I donβt know the syntax to do this, and I could not find the syntax for such triggers. In MySQL, I can only write triggers that trigger before / after INSERT , UPDATE or DELETE , but now I would like to write triggers that will be applicable at the database level and will trigger table events. Can someone help me?
source share