Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Trigger errors

637049Jun 16 2009 — edited Jun 18 2009
Hi all,

I have this code for trigger and I found this error:
the code:

create or replace TRIGGER SEND_MAIL_TRI AFTER late or absent ON Attendances
FOR EACH ROW
DECLARE
CRE VARCHAR2(2000);
PRAGMA AUTONOMOUS_TRANSACTION;
BEGIN
commit;
send_email(:new.user_name,:new.user_id,:new.email_address);
END;

and the error:
ORA-04072: invalid trigger type

I do not know the type for late and absent?? so I need your help..

Thanks,
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 16 2009
Added on Jun 16 2009
46 comments
1,884 views