SQL Server 2000 中有哪些魔术表? [英] What are the magic tables available in SQL Server 2000?
本文介绍了SQL Server 2000 中有哪些魔术表?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
SQL Server 2000 中有哪些魔术表?
What are the magic tables available in SQL Server 2000?
我想知道,为什么它们是魔法"表?
I wonder, why they are 'magic' tables?
推荐答案
魔术表"是 INSERTED 和 DELETED 表,以及 update() 和 columns_updated() 函数,用于确定 DML 语句导致的更改.
The 'magic tables' are the INSERTED and DELETED tables, as well as the update() and columns_updated() functions, and are used to determine the changes resulting from DML statements.
- 对于 INSERT 语句,INSERTED 表将包含插入的行.
- 对于 UPDATE 语句,INSERTED 表将包含更新后的行,DELETED 表将包含更新前的行.
- 对于 DELETE 语句,DELETED 表将包含要删除的行.
这些表的主要用途是在触发触发器时进行更复杂的操作.
The primary use of these tables are for more complex operations when triggers are fired.
这篇关于SQL Server 2000 中有哪些魔术表?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文