• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

help required in writing row level trigger?

 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I'm facing a problem in writing row level trigger for each row after insert.
My requirement is whenever the salary is inserted in emp table , i want to update the commission column as well and this has to happen for each row that gets inserted. But as the trigger is i'm trying to update the same table in question
i.e. mutating table...i get error
ORA-04091: ... is mutating, trigger/function may not see it ORA-06512....
Do you have any work around for this sort of requirements?
Thanks in advance.
regs
DEZ
 
Ranch Hand
Posts: 276
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can't you do a "before" insert trigger and set that column then?
Dan
 
reply
    Bookmark Topic Watch Topic
  • New Topic