Sql update query doesn#39;t fire update trigger for all records(Sql 更新查询不会触发所有记录的更新触发器)
问题描述
我从 table1 触发器调用了更新查询,当该查询运行时,它成功更新了其他 table2,但 table2 的更新触发器仅触发了 1 次,这意味着不是针对从更新查询更新的每条记录
I called update query from table1 trigger, when that query runs, it updates other table2 successfully but update trigger of table2 is fired only 1 time means not for every record that was updated from query of update
我使用的是 SQL Server 2008 Express 版本-
I'm using SQL Server 2008 Express edition-
请指点我哪里错了
推荐答案
终于拿到了anwser :/, Trigger fire once for single query execution.批量或批量更新/插入/删除不会唤醒每一行的触发器 :(,我非常感谢 Markov 先生和 David Dubois 先生,他们有兴趣帮助我:) 谢谢亲爱的,
Finally got the anwser :/, Trigger fire once for single query execution. mass or bulk update/insert/delete will not awake trigger for every row :(, i really appreciate Mr. Markov & Mr. David Dubois, who showed interest in post to help me:) thanks dear,
这篇关于Sql 更新查询不会触发所有记录的更新触发器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Sql 更新查询不会触发所有记录的更新触发器


- 如何使用 pip 安装 Python MySQLdb 模块? 2021-01-01
- 如何将 Byte[] 插入 SQL Server VARBINARY 列 2021-01-01
- SQL 临时表问题 2022-01-01
- 使用 Oracle PL/SQL developer 生成测试数据 2021-01-01
- 以一个值为轴心,但将一行上的数据按另一行分组? 2022-01-01
- 导入具有可变标题的 Excel 文件 2021-01-01
- 远程 mySQL 连接抛出“无法使用旧的不安全身份验证连接到 MySQL 4.1+"来自 XAMPP 的错误 2022-01-01
- 在SQL中,如何为每个组选择前2行 2021-01-01
- 如何将 SonarQube 6.7 从 MySQL 迁移到 postgresql 2022-01-01
- 更改自动增量起始编号? 2021-01-01