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 更新查询不会触发所有记录的更新触发器
基础教程推荐
- SSMS 中的权限问题:“对象 'extended_properties'、数据库 'mssqlsystem_resource'、... 错误 229)上的 SELECT 权限被拒绝" 2022-01-01
- 无法解决整理冲突 2021-01-01
- 在 SQL 中连接多个表 2021-01-01
- SQL Server 实例在登录协商期间返回无效或不受支持的协议版本 2021-01-01
- 需要 MySQL 5.1 中的抽象触发器来更新审计日志 2021-01-01
- 如何使用 mysql.connector 禁用查询缓存 2022-01-01
- 是否可以执行按位分组功能? 2021-01-01
- SQL 效率:WHERE IN 子查询 vs. JOIN 然后 GROUP 2021-01-01
- SQL:使用来自具有相同列名的两个表中的数据... 2021-01-01
- 将 SQL Server DateTime 列迁移到 DateTimeOffset 2021-01-01
