How to call the function and Procedure in trigger?
Answer Posted / pranabesh
Procedures can be called directly by name with parameters
[if any] in the trigger
ex:
suppose i have a procedure pro1(var1 in number, var2 in
number) which i want to call from trigger trig1
CREATE OR REPLACE TRIGGER TRIG1
AFTER UPDATE OF SAL ON EMP
REFERENCING NEW AS NEW OLD AS OLD
FOR EACH ROW
DECLARE
L_VAR1 NUMBER;
...
...
BEGIN
...
...
-- CALLING THE PROCEDURE
pro1(10,20);
END
Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
Which is better varchar or nvarchar?
What is the difference between database trigger and stored procedure?
Does a primary key have to be a number?
What are the most important characteristics of pl/sql?
Is oracle sql free?
Explain character-manipulation functions?
What is the use of function "module procedure" in pl/sql?
Mention what does plvtab enables you to do when you showthe contents of pl/sql tables?
Do ddl statements need commit?
What is cursor explain with example?
What is type and rowtype in pl sql?
What is the difference between cross join and natural join?
What is a function in oracle pl sql?
What is substitution variable?
How to prepare for oracle pl sql certification?