Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
データを読み取り、変数に保存するトリガーを作成したいと考えています。
しかしinserted、複数の行がある場合、どのように変数に格納するのでしょうか?
inserted
OUTPUT INTO簡単なINSERTステートメントで使用する
OUTPUT
INTO
INSERT
別のテーブルに転送されるテーブルに挿入するもの
http://technet.microsoft.com/en-us/library/ms177564.aspx
http://blog.sqlauthority.com/2007/10/01/sql-server-2005-output-clause-example-and-explanation-with-insert-update-delete/