create trigger tr_insert on 表
for inset
as
declare tb cursor for select * from inserted
open tb
fetch next from into ...
while @@fetch_status=0
being
处理语句
fetch next from into ...
end
close tb
deallocate tb
go
SQL SERVER触发器 使用 游标范例
最新推荐文章于 2023-08-04 08:33:06 发布