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/