O'Reilly logo

Oracle PL/SQL in 10 Minutes, Sams Teach Yourself by Ben Forta

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Lesson 24. Using Triggers

In this lesson, you’ll learn what triggers are, why they are used, and how. You’ll also look at the syntax for creating and using them.

Understanding Triggers

Oracle statements are executed when needed, as are stored procedures. But what if you wanted a statement (or statements) to be executed automatically when events occur? For example:

Image Every time a customer is added to a database table, check that the phone number is formatted correctly and that the state abbreviation is in uppercase.

Image Every time a product is ordered, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required