简体   繁体   中英

ORA-04079: invalid trigger specification — row level trigger

I am trying to create a trigger to notify when an employee's name is changed.

 create or replace trigger name_change
 after update on employee_table
 for each row when (old.e_name != new.e_name);
 begin
 dbms_output.putline(:old.e_name || 'changed their name to' || :new.e_name);
 end;

Not sure where the error is coming from.

when (old.e_name != new.e_name)之后应该没有分号

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM