image

CHAPTER34Triggers

A trigger defines an action the database should take when some database-related event occurs. Triggers may be used to supplement declarative referential integrity, enforce complex business rules, or audit changes to data. The code within a trigger, called the trigger body, is made up of PL/SQL blocks (see Chapter 32).

The execution of triggers is transparent to the user. Triggers are executed by the database when specific types of data manipulation commands are performed on specific tables. Such commands may include INSERTs, UPDATEs, and DELETEs. Updates of specific columns may also be used as triggering events. Triggering events ...

Get Oracle Database 12c The Complete Reference 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.