create trigger aa_tri
before update on aa
for each row
begin
if :new.id<>:old.id then
..
end if;
if :new.name<>:old.name then
...
end if;
...
end;
/