porder_before_delete.sql 282 B

12345678
  1. drop trigger if exists porder_before_delete;
  2. DELIMITER //
  3. create trigger porder_before_delete after delete on dbr_porder
  4. for each row begin
  5. delete from dbr_porder_bd where porder_id = old.id;
  6. delete from dbr_purch where porder_id = old.id;
  7. END//
  8. DELIMITER ;