在数据库里有RS_Attachment这样一个表,里面包含RuleID  bigint,AttachmentPath  nvarchar(max),UserID   nvarchar(50),
  Insert_time datetime,Update_time nvarchar(max),Insert_host nvarchar(max),Update_host nvarchar(max) 这些字段。当我往这个表里面插入数据的时候,首先根据 RuleID, AttachmentPath 来判断表里面是否存在数据,如果不存在的话那么就插入,存在的话则不进行操作这个触发器应该怎么写?刚才开始接触触发器,望高手赐教……谢谢额。。