GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Oracle  >  SQL
Go To First  |  Previous Question  |  Next Question 
 SQL  |  Question 82 of 171    Print  
Explain what is mutation and what is mutating table and how this mutation problem is solved in a table

  
Total Answers and Comments: 3 Last Update: August 24, 2007     Asked by: uma soni 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
May 02, 2006 06:17:10   #1  
Sailesh        

RE: Explain what is mutation and what is mutating tabl...

Mutation happens in case of triggers. A 'Mutating table' is a table which is being updated by Insert update or delete triggers.It can also be a table which is being updated when delete cascade is run.

Mutation occurs when a trigger is trying to update a row which it is using currently. To solve this either we have to use intermediate table or a view so that it can choose from one while updating the other.


 
Is this answer useful? Yes | No
August 16, 2006 15:04:04   #2  
Shefali        

RE: Explain what is mutation and what is mutating tabl...
just to add...you can avoid mutation by using autonomous transaction pragma
 
Is this answer useful? Yes | No
August 24, 2007 08:03:44   #3  
Nasim        

RE: Explain what is mutation and what is mutating tabl...
One solution also exist:

create a row level trigger and insert/update the data and take it in collections( varray or nested table or associative array). Then write a after statement level trigger and fetch that data.

 
Is this answer useful? Yes | No


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape