0

我想创建一个触发器,它将读取数据并将其存储在变量中。

但是如果inserted有不止一行,那么我们将如何存储变量呢?

4

1 回答 1

0

使用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/

于 2013-11-10T09:18:57.043 回答