Answer Posted / glibwaresoftsolutions
A trigger is a block of PL/SQL code automatically executed in response to certain events (e.g., INSERT, UPDATE, DELETE) on a table.
Example Trigger:
CREATE OR REPLACE TRIGGER EmployeeAudit
AFTER INSERT ON employees
FOR EACH ROW
BEGIN
INSERT INTO audit_log(employee_id, action, action_date)
VALUES (:NEW.id, 'INSERT', SYSDATE);
END;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
what is sql profiler? : Sql dba
Is sql a programming?
What is the difference between alter trigger and drop trigger statements?
What is mutating error in pl sql?
Can you upgrade sql express to full sql?
What are sql constraints?
What is group by in sql?
Can we rollback after truncate?
What is full join in sql?
What is difference between sql function and stored procedure?
Is sqlite good enough for production?
What does subquery mean in sql?
How do I use google cloud in sql?
How does rowid help in running a query faster?
Does view contain data?