I have a table in oracle and I want to examine updates in rows
id number, title varchar2(10), modify_date date
I created a trigger to feed the change_date file:
create or replace TRIGGER schema.name_of_trigger BEFORE UPDATE ON schema.name_of_table FOR EACH ROW BEGIN :new.modify_date := sysdate; END;
but when I do a big update from another table, I would like update_date to be updated ONLY for rows with a new value, and not for all rows.
update mytable a set title = (select title from mytable2 b where b.id = a.id)
Is it possible? I thought that Oracle would not update the field with the same value
thanks
Fredv source share