以下测试用例将演示,使用static的游标和不使用的区别: if object_id(N't_test',N'u') is not null drop table t_test go create table t_test( cola int primary key, colb )) ,'a') ,'b') ,'c') go if exists (SELECT OBJECT_ID FROM sys.triggers WHERE name = 'tg_test') drop trigger tg_…