Invoking a Java Stored Procedure using PL/SQL

Use a CALL statement in the trigger body clause of a PL/SQL statement to invoke a stored procedure, and pass arguments to it.

The CALL statement's arguments can be:

Correlation names are prefixes to column references. Use these names to qualify whether the reference applies to the existing column value of the row being processed by the trigger or the value being written by the triggering event:

An example of a complete trigger definition:




  CREATE TRIGGER check_salary



  BEFORE UPDATE OF salary ON employee



  CALL salaryCheck(:new.job, :old.salary, :new.salary, :old.employeeID)



     

Invoking a Java Stored Procedure

 

Copyright © 1997, 2004, Oracle. All rights reserved.