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!

insert or update trigger passing value to stored procedure

sgonos-OracleApr 15 2011 — edited Apr 15 2011
My task is to write a trigger that will pass a value from an insert or update to a stored procedure.

It's Friday and I am not clearly thinking, forgive me ...


Create or replace trigger <trigger name>

after insert or update of table XXX
for each row


execute procedure Just_Do_It
(userid = new.user_id).


so table XXX has the column userid, and I want the trigger to get it and pass it along to Just_Do_It.
what am I missing ?

Thank you.
This post has been answered by JustinCave on Apr 15 2011
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 13 2011
Added on Apr 15 2011
5 comments
4,243 views