DELIMITER $$ CREATE TRIGGER trigger_name BEFORE DELETE ON table_name FOR EACH ROW BEGIN -- statements END$$ DELIMITER ; Code language: SQL (Structured Query Language) (sql)