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 the use of FILE option in IMP command ?
What are Stored Procedures and When would we Use Them?
How do convert or display the date or time as string?
How does distributed database work?
Mention a query to calculate the even and odd records from a table
What are new features postgre 9.1?
how to retrive a data From database into the grid view..?
What is the difference between Memory_target and Memory_max_target? Why its required to resize these parameter?
With DTS packaging I can store tables in Excel and convert them back to SQL. But once I copied tables to Excel I want to modify some info. How you do that without editing the Excel file?
What is data sublanguage?
Explain the difference between physical and logical data independence?
Describe concurrency control.