item_before_delete.sql 269 B

123456789
  1. drop trigger if exists item_before_delete;
  2. DELIMITER //
  3. create trigger item_before_delete before delete on dbr_item
  4. for each row begin
  5. delete from dbr_item_thm where id = old.id;
  6. delete from pro_item_revsum where id = old.id;
  7. end
  8. //
  9. DELIMITER ;