Is there a way to tell which columns were explicitly updated in a PL/SQL BEFORE UPDATE
trigger?
For example: I want to set :new.last_modified_by := USER
only if the UPDATE
statement did not explicitly specify a value for this column.
Use the UPDATING
function:
if updating('LAST_MODIFIED_BY') then
...
end if;
More details are in the manual: http://docs.oracle.com/cd/E11882_01/appdev.112/e25519/triggers.htm#BCFIDDBB
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With