I am writing an Oracle trigger. This trigger should automatically set the value of the "productId" column to the value of the row just inserted.
I wrote a trigger:
create or replace trigger MyProduct_id_trg after insert on MyProduct begin update MyProduct set productId = inserted.oid where oid = inserted.oid; end;
However, this does not work.
Can someone help me?
Sincerely.
Kevin source share