1

「For Insert」トリガーを使用すると、トリガーされたときにまだテーブルに行が挿入されていますか?

  CREATE Trigger check_availability on Room
       For Insert, Update

ありがとう!

4

1 に答える 1

2

はい。

トリガーの作成

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.
于 2012-11-17T03:15:23.697 に答える