item_before_delete.sql 215 B

12345678
  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. end
  7. //
  8. DELIMITER ;