Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

how to make trigger in phpmyadmin

 delimiter // 
 CREATE TRIGGER removeforeing 
  BEFORE DELETE ON products
  FOR EACH ROW BEGIN
    DELETE FROM sales_details WHERE product_code = OLD.product_code;
 END// 
 delimiter ;
Source by dba.stackexchange.com #
 
PREVIOUS NEXT
Tagged: #trigger #phpmyadmin
ADD COMMENT
Topic
Name
7+7 =