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 the usage of nvl function?
What is nvarchar in sql?
What is sql*loader?
What does over partition by mean in sql?
explain the advantages and disadvantages of stored procedure? : Sql dba
Explain raise_application_error.
What are different types of tables in sql?
what is a composite primary key ? : Sql dba
What does subquery mean in sql?
Does postgresql run on the cloud?
What does desc stand for?
What are all the common sql functions?
What is difference between inner join and self join?
Can we group by two columns in sql?
What does an inner join do?