"A Trigger is a Database object just like a stored procedure or we can say it is a special kind of Stored Procedure which fires when an event occurs in a database.". It is a database object that is bound to a table and is executed automatically. We cannot explicitly call any trigger. Triggers provide data integrity and used to access and check data before and after modification using DDL or DML query.
To know more about triggers , I prefer below articles :
Please find below link where realtime example is there
Trgger is mainly used to perform action when you performa operation in table. once you insert, update and delete from table that time trigger automatically executes. please have a look at below link which will clear.
Navjot AngraRank #2,900 · 496 reputationPosted Aug 25, 2018, 8:35 AM EDT
+2
Hi,
Suppose u want to restrict some operation in your database,it means that u want without your permisson no one can insert ,update ,delete or other operations .
So Can Can doit with triggers.
In Simple words ,it automatically called or invoked when undesire thing will happen
Code AloneRank #488 · 5.1K reputationPosted Aug 24, 2018, 9:29 PM EDT
Shashangka ShekharRank #456 · 5.5K reputationPosted Aug 24, 2018, 6:07 PM EDT
Jignesh KumarRank #91 · 22.9K reputationPosted Aug 24, 2018, 6:08 PM EDT
Navjot AngraRank #2,900 · 496 reputationPosted Aug 25, 2018, 8:35 AM EDT
Karthikeyan KRank #554 · 4.4K reputationPosted Aug 24, 2018, 9:29 PM EDT
Shweta6851 reputationPosted Aug 25, 2018, 8:32 AM EDT
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts