Is it possible to use Transactional control statements in
Database ?

Answers were Sorted based on User's Feedback



Is it possible to use Transactional control statements in Database ?..

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

Is it possible to use Transactional control statements in Database ?..

Answer / guest

no, it is not possible to use Transactional control
statements in Database Triggers

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More Database Management Interview Questions

What is the difference between hashed file stage and sequential file stage in relates to datastage server?

0 Answers  


What do you mean by Correlated subquery in database?

0 Answers   B-Ways TecnoSoft,


What are the three levels of data abstraction?

0 Answers  


What is dbms function?

0 Answers  


What is a system concept?

0 Answers  






What is view dbms?

0 Answers  


How do you performance tune a database?

0 Answers  


Explain vdl (view definition language)?

0 Answers  


How do I convert a spreadsheet to a database?

0 Answers  


Differentiate between ‘delete’, ‘truncate’ and ‘drop’ commands.

0 Answers  


What are the four objectives of the selection of a data type?

0 Answers  


Explain 4nf?

0 Answers  


Categories