Unit 1
Triggers
Definition:
It is a set of actions which get executed automatically when specified change operation ( SQL insert, update or delete statement) is performed on perticular table.
Triggers is used to perform set of actions which get executed automatically where a specified changed operation (insert , update and delete) is performed on perticular table its is performed and generate data automatically, it validated input data, it repeated data with different files to achieve data consistency .
- We can write the file with the perticular purpose.
How to create triggers
Each triggers has distinct features
- Distinct name :User can use distinct name for trigger in the data base
- Table : it specifies the name of table every trigger we examined only a single table .
- When the trigger occurs you can use triggers before or after and insertion, deletion or updation of data base to alter triggers data before can be used after trigger must be used with the following
- Triger body : It contains group of SQL statement
- Syntax of trigger : Click Here
- Trigger name comes after create table statement then you need to define after word after keyword is used to process action after the changes made in the table and before if you want to process the action .
- Trigger_event : May insert update or delete .



























