开发者

What is Different between After And For in Triggers?

What is For usage and diffrenc开发者_如何学编程e between after and for???

Update Which One is Compatible with Standard Sql


FOR | AFTER

AFTER specifies that the DML trigger is fired only when all operations specified in the triggering SQL statement have executed successfully. All referential cascade actions and constraint checks also must succeed before this trigger fires.

AFTER is the default when FOR is the only keyword specified.

AFTER triggers cannot be defined on views.

FOR and AFTER are the same, INSTEAD OF is different, see Books Online for details http://msdn.microsoft.com/en-us/library/ms189799(SQL.90).aspx

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜