Different Types of PL/SQL Code Blocks in Oracle

Q

What Are the Different Types of PL/SQL Code Blocks in Oracle?

✍: FYIcenter.com

A

There are 3 types of PL/SQL code blocks:

  • Anonymous Block - A block of codes with no name. It may contain a declaration part, an execution part, and exception handlers.
  • Stored Program Unit - A block of codes with a name. It is similar to an anonymous block. But it can take parameters and return values.
  • Trigger - A block of code that can be defined to fire based an specific event.

 

Understanding PL/SQL Language Basics

⇒⇒Oracle Database Tutorials

2016-10-17, 129👍, 0💬