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 is assignment operator in pl sql?
How do I truncate a sql log file?
What is audit logout in sql profiler?
Can a foreign key be a duplicate?
What is rowid in sql?
What is the difference between alter trigger and drop trigger statements?
How to change sql*plus system settings?
How do I install microsoft sql?
Explain the uses of database trigger.
What is db journal file?
how to calculate expressions with sql statements? : Sql dba
What is identity column in sql server?
What is the difference between nested table and varray?
How to run sql commands in sql*plus?
Can one improve the performance of sql*loader? : aql loader