create table tba
(
a int,
b int,
c int
)
go
我要设计一个触发器:insert 的时候 c = a-b
如何处理?
create trigger I_a on a
instead of insert
as
set nocount on
update inserted set c = a-b
go
提示: 不能更新逻辑表 INSERTED 和 DELETED。
...全文
514打赏收藏
有个触发器的问题
create table tba ( a int, b int, c int ) go 我要设计一个触发器:insert 的时候 c = a-b 如何处理? create trigger I_a on a instead of insert as set nocount on update inserted set c = a-b go 提示: 不能更新逻辑表 INSERTED 和 DELETED。