给你个触发器的例子参考下:Create Trigger truStudent On dbo.学生for UpdateAs declare @cj intdeclare @xf smallintif Update(成绩) select @cj=成绩 from insertedselect @xf=学分 from insertedbegin if(@cj>=60 and @xf=0) Update 学生 Set 学分=3if(@cj<60 and @xf>0) Update 学生 Set 学分=0end