What is mutating table?

Answer Posted / kiran

Mutating" means "changing". A mutating table is a table
that is currently being modified by an update, delete, or
insert statement. When a trigger tries to reference a table
that is in state of flux (being changed), it is
considered "mutating", and raises an error since Oracle
should never return inconsistent data.

Another way this error can occur is if the trigger has
statements to change the primary, foreign or unique key
columns of the table off which it fires. If you must have
triggers on tables that have referential constraints, the
workaround is to enforce the referential integrity through
triggers as well.

Is This Answer Correct ?    36 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I run pl sql in sql developer?

630


Is pl sql a scripting language?

592


How do I truncate a word?

527


Explain how can you save or place your msg in a table?

597


Explain the difference in execution of triggers and stored procedures?

571






Can we call stored procedure in function?

552


What is a field in a database?

568


Explain correlated query work?

599


Can we create clustered index without primary key?

525


How do you know if a relationship is 2nf?

520


what are myisam tables? : Sql dba

552


How do you modify a trigger?

526


What is a Mapplet?

645


What is rownum in sql?

559


What are conditional predicates?

587