PL/SQL Procedure in Oracle


What Is a Procedure in Oracle?



A procedure is a named program unit. It consists of three parts:

  • Declaration Part - Defining the procedure name, calling parameters, local variables and local procedures. Declaration part is required.
  • Execution Part - Defining execution logic with executable statements. Execution part is required.
  • Exception Part - Defining error handling logics. Exception part is optional.

Here how a complete procedure should look like:

PROCEDURE name (parameter_1, parameter_2) AS
  -- Declaration statements
  -- Executable statements
  -- Error handling statements


PL/SQL Functions in Oracle

PL/SQL Named Program Unit in Oracle

Understanding PL/SQL Language Basics

⇑⇑ Oracle Database Tutorials

2018-11-29, 1642🔥, 0💬