Answer Posted / nashiinformaticssolutions
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 packages are available to pl/sql developers?
What is parameter substitution in sql?
How do you select unique values in sql?
How do I remove sql plus from windows 10?
What is the maximum number of triggers, you can apply on a single table?
Explain commit, rollback and savepoint.
What are the two parts of design view?
What is trigger explain with example?
Is left join inner or outer?
What is error ora-01000: maximum open cursors exceeded
How do you go back in sql?
What is the difference between delete, truncate and drop command?
What is sql not null constraint?
why does the selected column have to be in the group by clause or part of an aggregate function? : Sql dba
how to show all tables with 'mysql'? : Sql dba