4、调试阿。 ------------------------------------------------------- As ifUpdate(StudentID) begin UpdateBorrowRecord Setbr.StudentID=i.StudentID FromBorrowRecordbr,Deleted d,Insertedi Wherebr.StudentID=d.StudentID end 理解触发器里面的两个临时的表:Deleted,Inserted。注意Deleted与Insert