CREATE OR REPLACE TRIGGER tri_test before update of a on test_table for each rowWHEN (new.a is not null and new.a<>old.a)begin :new.b:=sysdate;end;