Answer Posted / hr@tgksolutions.com
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 union, minus and interact commands? : Sql dba
What are sql indexes?
how to return query output in html format? : Sql dba
What are different types of functions in sql?
can sql servers linked to other servers like oracle? : Sql dba
What is execution plan in sql?
Is inner join same as self join?
What are the usages of sql?
What is view? Can we update view
Does inner join remove duplicates?
what is sql? : Sql dba
Define overloaded procedure?
Is pl sql a scripting language?
Does varchar need length?
What is set serveroutput on?