How to call a stored procedure inside a trigger? Give an
example.

Answer Posted / pardeep

Using Call keyword we can call procedure inside trigger.
e.g.
CREATE OR REPLACE TRIGGER foo
BEFORE DELETE OR INSERT OR UPDATE ON <<table_name>>
FOR EACH ROW
BEGIN
CALL PROCEDURE_NAME();
END;
/

Is This Answer Correct ?    16 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to execute a stored program unit?

576


src name sex a,male b,female c,male d,female Required output : male female a,b c,d tried pivot but was not successfull select * from src pivot (max(name) for sex in ('MALE','FEMALE'));

1174


How to use like conditions in oracle?

564


how to code performance tuning of oracle PL/SQL? can any body send me the perfect answer?

4659


Which are the five query types available in oracle?

524






Explain parameter file in oracle.

572


How do I start tns listener?

530


How i can handle exception in large code like 1000 line without distrubing the code or without exception handler sction?

2720


What is Virtual Private Database in Oracle?

607


What is dynamic proxy?

543


How to create a testing table in oracle?

536


How to assign data of the deleted row to variables?

574


How to update values on multiple rows in oracle?

593


Using the relations and the rules set out in the notes under each relation, write table create statements for the relations EMPLOYEE, FIRE and DESPATCH. You should aim to provide each constraint with a formal name, for example table_column_pk.

1348


What operating systems are supported by oracle database 10g xe?

573