Entries by Oracle ERP Apps Guide

, , ,

Create, Alter and Drop

Creating ProceduresThe following is a code sample that will create a stored procedure named PROC_RESET_ERROR_LOG:CREATE PROCEDURE PROC_RESET_ERROR_LOG ISBEGIN  — Clean out the ERRORS table  DELETE FROM ERRORS;  COMMIT;END;The syntax to create a function is similar to the syntax used to create a procedure, with one addition: the RETURN declaration. The following is a sample CREATE […]

, , ,

Subprograms

Subprograms are named PL/SQL blocks that can take parameters and be invoked. PL/SQL has two types of subprograms called procedures and functions. Generally, you use a procedure to perform an action and a function to compute a value.   Uses of Procedures/FunctionsProcedures are excellent for defining a PL/SQL code block that you know you will […]