sorder_before_delete.sql 282 B

12345678
  1. drop trigger if exists sorder_before_delete;
  2. DELIMITER //
  3. create trigger sorder_before_delete after delete on dbr_sorder
  4. for each row begin
  5. delete from dbr_sorder_bd where sorder_id = old.id;
  6. delete from dbr_sales where sorder_id = old.id;
  7. END//
  8. DELIMITER ;