Calling Stored Procedures or Functions

Previous
Previous
Next
Next

You can call a stored subprogram from a BEGIN ... END block or from another subprogram or a package.

When calling a stored procedure or function, you can write the actual parameters using the following type of notation:

Example: Techniques for Calling Stored Procedures or Functions shows how you can call the stored procedure in Example: Creating a Stored Procedure That Uses Parameters.

Techniques for Calling Stored Procedures or Functions

-- use a PL/SQL block to execute the procedure
BEGIN
  award_bonus(179, 0.05);
END;
/
-- using named notation for the parameters, rather than positional
BEGIN 
  award_bonus(bonus_rate=>0.05, emp_id=>123); 
END;
/

You can also call procedures and functions from pages created with Application builder.


See Also:

Oracle Database Express Edition Application Express User's Guide for information about Application Builder