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 |
i have a web page and in this page i create 3 textbax and a "summit" button do you have any html code for add text velue in my web page like link summation(form) sites.
Which is the best database?
Define phantom deadlock.
Enlist various types of interactions created by dbms?
What is artificial key?
Should database table names be capitalized?
write a query to retrieve the last day of next month in oracle.
What is query in rdbms?
What is record in a database?
Explain the advantages and disadvantages of a hierarchical database?
Are databases stored on servers?
How do you set a primary key?