Assuming you have a level trigger, you can simply use a pseudo-record :NEW
CREATE TRIGGER name_of_trigger BEFORE INSERT ON emp FOR EACH ROW DECLARE <<declare variables>> BEGIN IF( :new.ename = 'JUSTIN' ) THEN <<do something if the newly inserted ENAME value is 'JUSTIN'>> END IF; END;
For a DDL trigger, the approach is completely different. In this case, the pseudo-functions ora_dict_obj_owner and ora_dict_obj_name will return the owner and name of the table in which the DDL operator operates.
Justin cave
source share