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

What is sql engine in oracle?

526


How does a self join work?

522


What are types of joins?

538


Is sqlite good enough for production?

542


What are the conditions an underlying table must satisfy before a cursor can be used by a positioned update or delete statement? : Transact sql

543






What are reports usually used for?

570


How do you create a unique index?

579


Is json a nosql?

547


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

520


Define a temp table?

560


What are actual parameters and formal parameters?

575


Why are sql stored procedures used?

621


What is cascade in sql?

563


how to increment dates by 1 in mysql? : Sql dba

545


What are properties of the transaction?

562