About Triggers in PLSQL
Syntax: CREATE OR REPLACE TRIGGER audit_salary_change -- "Create a guard named audit_salary_change" BEFORE UPDATE -- "Catch them BEFORE they update anything" ON employees -- "Watch the 'employees' table" FOR EACH ROW -- "Check EVERY single employee being updated!" DECLARE -- (This is where you can declare variables if you need them) BEGIN -- (This is the action) -- Let's say we want to log the event or check if the change is valid: INSERT INTO audit_log (msg) VALUES ('A salary is being changed!'); END; / ...