sales_before_delete.sql 221 B

1234567
  1. drop trigger if exists sales_before_delete;
  2. DELIMITER //
  3. create trigger sales_before_delete after delete on dbr_sales
  4. for each row begin
  5. delete from dbr_sales_bd where sales_id = old.id;
  6. END//
  7. DELIMITER ;