SQL Server row date last modified

前端 未结 6 562
说谎
说谎 2021-01-07 16:09

A colleague of mine says that SQL Server saves the date and time of last modification in a \"hidden column\" in each record. I am pretty sure that he said something wrong. C

6条回答
  •  [愿得一人]
    2021-01-07 16:51

    If you want to know when a specific row was last updated, you should maintain a "LastUpdated" timestamp column in the table and update that upon every UPDATE (e.g. automatically via trigger)

提交回复
热议问题