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 online transaction processing (oltp)? : Sql dba

713


Which type of cursor is used to execute the dml statement?

709


Explain the order of sql statement execution?

806


What is difference between joins and union?

746


what is an alias command? : Sql dba

727






What are sql functions? Describe the different types of sql functions?

756


Explain what is a database?

811


How much does sql certification cost?

743


What is a file delimiter?

742


What are character functions?

804


what are all different types of collation sensitivity? : Sql dba

708


what are the advantages of mysql in comparison to oracle? : Sql dba

704


What is the use of count (*) in sql?

754


What are the triggers associated with image items?

794


Why do we use sql constraints? Which constraints we can use while creating database in sql?

726