What Are the Types PL/SQL Code Blocks

Q

What Are the Types PL/SQL Code Blocks? - Oracle DBA FAQ - Understanding PL/SQL Language Basics

✍: 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.

2007-05-01, 5221👍, 0💬