SQL Server:选择 1 行会导致 1+3 行受到影响?

发布于 2024-10-01 09:28:17 字数 575 浏览 0 评论 0原文

我从表中选择 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

如日中天 2024-10-08 09:28:17

如果您打开了显示实际执行计划,则可能会发生这种情况。第二行计数用于传输执行计划数据。

This can happen if you have Show Actual Execution Plan turned on. The second rowcount is for transferring the execution plan data.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文