credit_bd_insert.sql_확인해서다시구현요 227 B

1234567
  1. DELIMITER //
  2. CREATE TRIGGER credit_bd_insert AFTER INSERT ON dbr_credit_bd
  3. FOR EACH ROW SQL SECURITY INVOKER
  4. BEGIN
  5. UPDATE dbr_company SET curr_credit_bal = new.bal_amt WHERE id = new.buyer_id;
  6. END//
  7. DELIMITER ;