Synonyms
Triggers
Definition
A database trigger is code that is executed in response to events that have been generated by database commands such as INSERT, DELETE, or UPDATE.
Key Points
Triggers are code that are executed in response to events that have been generated before or after a database operation. They are sometimes separated as pre- and post-triggers in the literature. A pre-trigger can be used as an extra validation check before the database command is executed, whereas a post-trigger can be used as a notification that the database command has been executed.
Triggers can be classified according to trigger granularity: row-level triggers or statement-level triggers. In case of row-level triggers, each row will generate an event, whereas statement-level triggers occur only once per database command.
Cross-References
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Recommended Readings
Kulkarni KG, Mattos NM, Cochrane R. Active database features in SQL3. In: Active rules in database systems; 1999. p. 197–219.
Sudarshan S, Silberschatz A, Korth H. Triggers, chap. 8.6; 2006. p. 329–34.
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Section Editor information
Rights and permissions
Copyright information
© 2018 Springer Science+Business Media, LLC, part of Springer Nature
About this entry
Cite this entry
Berndtsson, M., Mellin, J. (2018). Database Trigger. In: Liu, L., Özsu, M.T. (eds) Encyclopedia of Database Systems. Springer, New York, NY. https://doi.org/10.1007/978-1-4614-8265-9_511
Download citation
DOI: https://doi.org/10.1007/978-1-4614-8265-9_511
Published:
Publisher Name: Springer, New York, NY
Print ISBN: 978-1-4614-8266-6
Online ISBN: 978-1-4614-8265-9
eBook Packages: Computer ScienceReference Module Computer Science and Engineering