A trigger is the most important part of the SQL. It is a special type of stored-procedure which automatically runs when an event occurs in the database.