purch_before_delete.sql 221 B

1234567
  1. drop trigger if exists purch_before_delete;
  2. DELIMITER //
  3. create trigger purch_before_delete after delete on dbr_purch
  4. for each row begin
  5. delete from dbr_purch_bd where purch_id = old.id;
  6. END//
  7. DELIMITER ;