SQL SQL Trigger https://www.sqlshack.com/learn-sql-sql-triggers/ CREATE TRIGGER <trigger-name> AFTER <event> ON <table-or-view> [ REFERENCING OLD AS <corelation-old> ] [ REFERENCING NEW AS <corelation-new> ] FOR EACH ROW [ WHEN <condition> ] BEGIN ATOMIC <DML-action-1>; ... <DML-action-n>; END