Skip to content
Advertisement

How to get a SQL trigger to increment by 1 on an update?

I am trying to create a trigger that updates one column on a specific row when it is updated but I am getting this error

ORA-04091: table table_name is mutating, trigger/function may not see it

when I go to test the trigger.

This is my trigger code:

It is suppose to only update that certain Employees ID revisions

Advertisement

Answer

You need to get rid of the BEGINEND like this:

User contributions licensed under: CC BY-SA
4 People found this is helpful
Advertisement