SQL Server:选择 1 行会导致 1+3 行受到影响?
我从表中选择 1 行:
select * from LCTs WHERE LCTGUID = 'B642B9E6-779A-4FD0-8514-294EAF87A9A6'
(1 row(s) affected)
(3 row(s) affected)
如何获得受单个选择影响的 4 行(特别是因为它只返回一行)?
额外信息:
- SQL Server 2000
- LCT 是一个真实的表(即不是视图或 UDF),
- 表上没有触发器
- 这是 SQL Server 2000,它没有 DDL 审核
更奇怪的是,如果我更新这一行:
update LCTs SET IsDirty = 1 WHERE LCTGUID = 'B642B9E6-779A-4FD0-8514-294EAF87A9A6'
(1 row(s) affected)
(5 row(s) affected)
如何在 SQL Server 2000 中,在没有触发器的表中,一行的更新会影响 6 行吗?
i'm selecting 1 row from a table:
select * from LCTs WHERE LCTGUID = 'B642B9E6-779A-4FD0-8514-294EAF87A9A6'
(1 row(s) affected)
(3 row(s) affected)
How can i get 4 rows affected by a single select (especially since it returns only one row)?
Bonus information:
- SQL Server 2000
- LCTs is a real table (i.e. not a view or UDF)
- there is no triggers on the table
- this is SQL Server 2000, which has no DDL auditing
Even more bizarre is that if i update that one row:
update LCTs SET IsDirty = 1 WHERE LCTGUID = 'B642B9E6-779A-4FD0-8514-294EAF87A9A6'
(1 row(s) affected)
(5 row(s) affected)
How is an update of one row affecting 6 rows, in a table, without triggers, in SQL Server 2000?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您打开了
显示实际执行计划
,则可能会发生这种情况。第二行计数用于传输执行计划数据。This can happen if you have
Show Actual Execution Plan
turned on. The second rowcount is for transferring the execution plan data.