Triggers allow you to add functionality to your tables so that they perform a certain series of actions whenever a defined query is made. For example, it is possible to have your DBMS recalculate certain values whenever new records are added, or whenever more than ten rows have been read at once.

Many people find triggers problematic because they are hard to debug, and often cause unexpected actions. However, if used properly they fulfil a role that nothing else can, and so can help a great deal.


Next chapter: Views >>

Previous chapter: Stored procedures

Jump to:


Home: Table of Contents

Follow us on or Twitter

Username:   Password:
Create Account | About TuxRadar