MySQL Generator

Create/Drop Trigger Structure

Create Trigger:Query Output:

CopiedCopy Code

DELIMITER $$
CREATE TRIGGER <trigger_name> <trigger_time> <trigger_event> ON <table_name>
FOR EACH ROW
BEGIN
<trigger_body>
END$$
DELIMITER ;


Drop Trigger:Query Output:

CopiedCopy Code

DROP TRIGGER <trigger_name>;