sorder_after_insert-already-.sql 516 B

1234567891011
  1. drop trigger if exists sorder_after_insert;
  2. DELIMITER //
  3. create trigger sorder_after_insert after insert on dbr_sorder
  4. for each row begin
  5. if new.reward_amt <> '0.0000' then
  6. call reward_bd_act('sorder', new.id, 0);
  7. end if;
  8. end //
  9. DELIMITER ;
  10. 2022/08/03 05:00:35 [Log]: jfhgkeytg @ DB error in Adding Id of 0 in dbr_sorder Error 1442: Can't update table 'dbr_sorder' in stored function/trigger because it is already used by statement which invoked this stored function/trigger