Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Is it possible to use Transactional control statements in
Database ?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the purpose of normalization in dbms?

1096


What is the purpose of a database?

991


What are the restrictions applicable while creating views?

904


What is join? Mention its types.

982


What is the relationship?

928


What is cliques? What is vdisk and how it will communicate with physical data storage at the time of data retrieval through amp?

825


What is system catalog or catalog relation?

1028


What is a clustered database?

850


Discuss some of the techniques that can be used to tune operational performance.

900


Define RDBMS.

1130


What does fill factor concept mean with respect to indexes?

890


What is the best free database software?

824


What are the four objects in a database?

985


What are the applications of database management system?

849


Explain, why is rdbms better than dbms?

949