I started my reading with triggers but in that I am confused about statement level triggers and row level triggers. How can one decide which one to use? A brief explanation on this would be useful.
Printable View
I started my reading with triggers but in that I am confused about statement level triggers and row level triggers. How can one decide which one to use? A brief explanation on this would be useful.
The trigger can be either row-level or statement-level. Row-level triggers get fired once for each row affected by the triggering statement. The statement level triggers gets fired once for the whole statement.