-1
是否有可能在更新/更改行時使ModifiedDate自動更新CurrentDateTime?如何添加觸發器以填充ModifiedDate
SELECT [ID]
,[PK]
,[Iteration]
,[Exam01]
,[Exam02]
,[Exam03]
,[Exam04]
,[Exam05]
,[Exam06]
,[Exam07]
,[Exam08]
,[Exam09]
,[Exam10]
,[Exam11]
,[Exam12]
,[Exam13]
,[Exam14]
,[HRGCode]
,[AgeStart]
,[AgeEnd]
,[CreateDate]
,[ModifiedDate] --- Need this to update when the row is Modified!
,[ModifiedBy]
,[Comments]
FROM [CommDB].[dbo].[tblRadiologyNucMedLookup] c
order by ID
您不需要此觸發器。將ModifiedDate = GetDate()添加到您的UPDATE語句中。 –
是的,這是可能的。你有嘗試過什麼嗎? – HABO