Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

before delete trigger mysql

DELIMITER $$

CREATE TRIGGER trigger_name
    BEFORE DELETE
    ON table_name FOR EACH ROW
BEGIN
    -- statements
END$$    

DELIMITER ;
Code language: SQL (Structured Query Language) (sql)
Source by www.mysqltutorial.org #
 
PREVIOUS NEXT
Tagged: #delete #trigger #mysql
ADD COMMENT
Topic
Name
9+6 =