text: USE `soft_uni`;
  
  CREATE TABLE `logs`(
  `log_id` INT PRIMARY KEY AUTO_INCREMENT,
  `account_id` INT,
  `old_sum` DECIMAL(19,4),
  `new_sum` DECIMAL(19,4)
  );
  
  DELIMITER $$$
  CREATE TRIGGER `tr_update_accounts`
  AFTER UPDATE
  ON `accounts`
  FOR EACH ROW
  BEGIN
  	INSERT INTO `logs` (`account_id`, `old_sum`, `new_sum`)
      VALUES (OLD.`id`, OLD.`balance`, NEW.`balance`);
  END; $$$
  DELIMITER ;
  
  UPDATE `accounts`
  SET `balance` = '9133.1200'
  WHERE `id` = 1;
  
  SELECT * FROM `logs`;