PL/SQL Named Program Unit in Oracle

Q

What Is a Named Program Unit in Oracle?

✍: FYIcenter.com

A

A named program unit is a PL/SQL code block with an name. It consists of three parts:

  • Declaration Part - Defining the program unit 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.

There are two types of named program units:

  • Procedure - Has no return values.
  • Function - Has a return value.

 

PL/SQL Procedure in Oracle

PL/SQL Anonymous Block in Oracle

Understanding PL/SQL Language Basics

⇑⇑ Oracle Database Tutorials

2018-11-29, 1630🔥, 0💬