Answer Posted / glibwaresoftsolutions
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 a primary key? Explain
Why should I use postgresql?
What are the popular database management systems in the it industry?
What is sql exception?
What is the difference between python and sql?
What is the difference between nvl function, ifnull function, and isnull function?
What are data types in pl sql?
What are the types of variables use in pl sql?
What is pl sql code?
i have a column which may contain this kind of value: 123*67_80,12*8889_5,34*8_874 ,12*7_7 (can contain space before a comma, and this string length can be anything) now i want to split this value into two column like: column1: 123*67,12*8889,34*8,12*7 column2: 80,5,874,7 use function for this
Define tables and fields in a database
What is crud stand for?
how to get help information from the server? : Sql dba
How do you remove duplicate records from a table?
What is use of trigger?