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...


Can i use Commit inside the Trigger? Suppose i use commit
what will be happy (it's complied /executed/work)

Answers were Sorted based on User's Feedback



Can i use Commit inside the Trigger? Suppose i use commit what will be happy (it's complied /e..

Answer / saraswathi muthuraman

Trigger will be compiled. while execution r error will occur.
To avoid this you can use PRAGMA autonomus_transaction

example :

create or replace trigger emp_test_trig
after update on emp_test
for each row
declare
PRAGMA autonomus_transaction;
begin

insert into dep_test values(100,:new.emp_id);
commit;
end;
/

Is This Answer Correct ?    18 Yes 0 No

Can i use Commit inside the Trigger? Suppose i use commit what will be happy (it's complied /e..

Answer / saravanakumar

you can commit trigger if the declaration part contains
autonomus transaction

Is This Answer Correct ?    10 Yes 0 No

Can i use Commit inside the Trigger? Suppose i use commit what will be happy (it's complied /e..

Answer / kannan

By using PRAGMA autonomus_transaction we can use commit
inside the trigger.

Is This Answer Correct ?    6 Yes 0 No

Can i use Commit inside the Trigger? Suppose i use commit what will be happy (it's complied /e..

Answer / swapna

commit,rollback and savepoint cannot be used in a trigger
directly, but it can be called in a stored procedure
present in the trigger. however it is usually avoided as it
might have sideeffects in transactions.

Is This Answer Correct ?    2 Yes 2 No

Can i use Commit inside the Trigger? Suppose i use commit what will be happy (it's complied /e..

Answer / suresh babu

You cannot use the commit inside the trigger,because the
Transaction Control Languages(TCL) are not allowed in trigger.

Is This Answer Correct ?    0 Yes 4 No

Can i use Commit inside the Trigger? Suppose i use commit what will be happy (it's complied /e..

Answer / coolpankaj

You can not use Commit Inside Trigger. It will not get complied.

Is This Answer Correct ?    1 Yes 6 No

Post New Answer

More SQL PLSQL Interview Questions

In packages the source code is compiled into p code ? how do we describe the p code

3 Answers  


Is inner join same as self join?

0 Answers  


what are the forced views

6 Answers   Hexaware, TCS,


write a query to remove null following table are id name 101 dinesh null jyothi null bharathi 102 suresh null shilpha 103 prakesh null suma i want the output format like id name 101 dinesh 102 suresh 103 prakesh

3 Answers   TCS,


How do I run a program in pl sql?

0 Answers  


Why stored procedure is faster than query?

0 Answers  


Does pl/sql support create command?

0 Answers  


what is union, minus and interact commands? : Sql dba

0 Answers  


Can we insert data into materialized view?

0 Answers  


What is the difference between explicit and implicit cursors in oracle?

0 Answers  


How does cross join work in sql?

0 Answers  


What is trigger in pl sql with examples?

0 Answers  


Categories