Define trigger?
1296
14-Jun-2017
Updated on 18-Sep-2020
Sunil Singh
14-Jun-2017A database trigger is a code or programs that automatically execute with response to some event on a table or view in a database. Trigger helps to maintain the integrity of the database.
Example: When a new student is added to the student database, new records should be created in the related tables like Exam, Score and Attendance tables.