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 most important ddl statements in sql are?
Is left join and outer join same?
What is the maximum size of sqlite database?
What is materialized view. What are different methods of refresh?
What is a null value?
where are cookies actually stored on the hard disk? : Sql dba
How subquery works in sql?
How many types of literals are available in pl sql?
How can we make an if statement within a select statement?
Is sql an operating system?
What is sql injection owasp?
Does sql*plus also have a pl/sql engine?
what is cursor. write example of it. What are the attributes of cursor.
What is normalization in a database?
What is the starting oracle error number?