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 do you mean by dml compiler?
how to restore particular schema from rman full backup?
Explain the role of metadata for the three-layer architecture.
What is primary key in database?
what are the advantages of GUI systems ?
Why do we study dbms?
What are good databases?
How do you invoke datastage using unix?
What is a Federated Query ?
What is db context?
How to Perform Data Cleaning and Preprocessing?
What is the main purpose of normalization?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)