Chapter 10Database Triggers
The fourth type of named PL/SQL block is the trigger. Triggers share many of the same characteristics as subprograms (which we have examined in the previous two chapters), but they have significant differences both in how they are created and how they are called. In this chapter, we will examine how to create different types of triggers and discuss some possible applications.
Types of Triggers
Triggers are similar to procedures or functions in that they are named PL/SQL blocks with declarative, executable, and exception handling sections. Like packages and object types (which we will discuss in Chapters 14–16), triggers must be stored as stand-alone objects in the database and cannot be local to a block or package. ...
Get Oracle Database 10g PL/SQL Programming now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.