I\'m trying to create a trigger for my table which automatically adds a published date based on when a certain flag is set to \'Y\'
I don\'t have much experience wit
create or replace TRIGGER ADD_CREATE_DT after UPDATE of approved ON articles for each row BEGIN IF :NEW.approved = 'Y' THEN :new.create_dt := sysdate; END IF; END;