What is trigger?

what is exactly trigger is?why do we use it?


  1. What is a relational database trigger
  2. Why are relational database triggers used
  3. Relational database trigger example

If you don’t get your answer, then ask me again.


I database trigger is a script that you attach to a table that either runs before or after an event on the table

the script can “trigger” on Update insert delete commands.
I would only use a trigger in database troubleshooting. build a design that does not require triggers. They will bite you later when you are under the gun and cannot figure out why a certain behavior is happening.

another form of trigger is when your boss asked why you failed to complete your sprint objectives and you remember all the stuff he packed on after the sprint started… glances at his avatar…