更新操作 if exists(select 1 from inserted) and exists(select 1 from deleted)
插入操作 if (exists (select 1 from inserted) and not exists (select 1 from deleted))
删除操作 if (not exists (select 1 from inserted) and exists (select 1 from deleted))
更新操作 if exists(select 1 from inserted) and exists(select 1 from deleted)
插入操作 if (exists (select 1 from inserted) and not exists (select 1 from deleted))
删除操作 if (not exists (select 1 from inserted) and exists (select 1 from deleted))