item_after_insert.sql 413 B

12345678910
  1. drop trigger if exists item_after_insert;
  2. DELIMITER //
  3. create trigger item_after_insert after insert on dbr_item
  4. for each row begin
  5. replace into dbr_item_thm ( id, created_on, upload_batch )
  6. value (new.id, unix_timestamp(), new.upload_batch ) ;
  7. replace into pro_item_revsum (id, created_on, updated_on ) value (new.id, unix_timestamp(), unix_timestamp()) ;
  8. end
  9. //
  10. DELIMITER ;