Triggers-Mutating Table

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mask
    New Member
    • Sep 2007
    • 17

    #1

    Triggers-Mutating Table

    I am writing a trigger for delete event of employee table (PK - empno, Mrgid - Self referencing key ) in oracle .In the trigger , i wish to update the rows of the same table which have mgr id equal to the empno being deleted, and set the mgrid=null. The problem coming here is of Mutating table.Is there a simple workaround of this problem?
    Thx n regards
  • amitpatel66
    Recognized Expert Top Contributor
    • Mar 2007
    • 2358

    #2
    Originally posted by mask
    I am writing a trigger for delete event of employee table (PK - empno, Mrgid - Self referencing key ) in oracle .In the trigger , i wish to update the rows of the same table which have mgr id equal to the empno being deleted, and set the mgrid=null. The problem coming here is of Mutating table.Is there a simple workaround of this problem?
    Thx n regards
    Check for avoiding mutating table here

    Comment

    Working...