How to create Trigger?
What is trigger ? How to create Trigger?
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Pankaj Kumar ChoudharyRank #80 · 24.4K reputationPosted Aug 1, 2015, 7:38 PM EDT
Rajeesh MenothRank #118 · 18.4K reputationPosted Aug 2, 2015, 1:29 AM EDT
Amitesh VermaRank #2,535 · 552 reputationPosted Aug 3, 2015, 3:42 AM EDT
Basit KhanRank #4,768 · 326 reputationPosted Aug 18, 2015, 8:30 PM EDT
Shakti SaxenaRank #618 · 3.9K reputationPosted Aug 18, 2015, 9:01 PM EDT
Sumit JoshiRank #1,252 · 1.4K reputationPosted Aug 18, 2015, 9:09 PM EDT
Rahul PrajapatRank #1,209 · 1.5K reputationPosted Aug 18, 2015, 9:16 PM EDT
CREATE [OR REPLACE ] TRIGGER Trigger_Name
ON Table_Name
{BEFORE | AFTER | INSTEAD OF }
{INSERT [OR] | UPDATE [OR] | DELETE}
AS
Begin
Declaration Part
{
}
Select Part
{
// Initialize Variables
}
Executable-Code
EXCEPTION
Exception-Handling-Code
END;
Sumit JoshiRank #1,252 · 1.4K reputationPosted Aug 18, 2015, 9:24 PM EDT
Hemlata KushwahaRank #6,963 · 252 reputationPosted Aug 18, 2015, 9:36 PM EDT
Upendra Pratap ShahiRank #329 · 7.5K reputationPosted Aug 18, 2015, 10:28 PM EDT
Mohammed IbrahimRank #685 · 3.5K reputationPosted Aug 18, 2015, 10:48 PM EDT