1-- Oracle DB Syntax
2CREATE OR REPLACE TRIGGER {trigger_name}
3BEFORE | AFTER
4INSERT | UPDATE | DELETE
5ON {table_name}
6(FOR EACH ROW)
7{operation to be executed}
8
9-- for example
10CREATE TRIGGER log_updates
11AFTER INSERT OR UPDATE ON Person
12FOR EACH ROW
13INSERT INTO LogPerson(ts, IdPerson, surname)
14VALUES(CURRENT_TIMESTAMP, NEW.id, NEW.surname);
1CREATE TRIGGER schema_name.trigger_name
2ON table_name
3AFTER INSERT,UPDATE,DELETE
4AS
5{sql_statements}
6