Is it possible to use Transactional control statements in
Database ?
Answers were Sorted based on User's Feedback
Answer / ddrema
It's posible and mandatory if you use AUTONOMOUS
TRANSACTION in the TRIGGER.
like this:
CREATE OR REPLACE TRIGGER audit_sal
BEFORE UPDATE OF salary ON employees FOR EACH ROW
DECLARE
PRAGMA AUTONOMOUS_TRANSACTION;
BEGIN
INSERT INTO emp_audit VALUES( :old.employee_id, SYSDATE,
:new.salary, :old.salary );
COMMIT;
END;
/
Is This Answer Correct ? | 2 Yes | 0 No |
Answer / guest
no, it is not possible to use Transactional control
statements in Database Triggers
Is This Answer Correct ? | 0 Yes | 1 No |
What is database write application of database?
What is pdo database?
Define cursor and its types.
What is cluster table or non_cluster table?
Does netlib support windows 95?
Do we consider null values the same as that of blank space or zero?
What are the differences between drop, truncate and delete commands?
Explain 3nf?
If I use netlib, will I find many other users to network with?
What is a database in business?
Who is the founder of database?
How to detect the server version?