DROP TRIGGER IF EXISTS `TargetTable_before_update`;

INSERT INTO
    `TargetTable`
    (
	     	`Id`
    )
SELECT
    	`Id`
FROM
    `FromTable`;
    
SET @OLDTMP_SQL_MODE=@@SQL_MODE, SQL_MODE='STRICT_TRANS_TABLES,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION';
DELIMITER //
CREATE TRIGGER `TargetTable_before_update` BEFORE UPDATE ON `TargetTable` FOR EACH ROW BEGIN
	SET NEW.UpdatedAt = UTC_TIMESTAMP();
END//
DELIMITER ;
