4、---------------------------------------------- As ifUpdate(StudentID) begin UpdateBorrowRecord Setbr.StudentID=i.StudentID FromBorrowRecordbr,Deleted d,Insertedi Wherebr.StudentID=d.StudentID end 理解触发器里面的两个临时的表:Deleted,Inserted。注意Deleted与Inserted分别表示触发事件的表“旧的一条记录”