sorder_bd_before_delete.sql 288 B

12345678
  1. drop trigger if exists sorder_bd_before_delete;
  2. DELIMITER //
  3. create trigger sorder_bd_before_delete before delete on dbr_sorder_bd
  4. for each row begin
  5. delete from dbr_sales_bd where sorder_bd_id = old.id;
  6. call credit_bd_act('sordbd', old.id, -1);
  7. END//
  8. DELIMITER ;