Microsoft SQL Server: Any way to tell when a record was created?

后端 未结 5 1859
暖寄归人
暖寄归人 2021-01-11 15:14

Our customer wants to order by the record creation date. To me this seems like a system variable, some sort of meta data for the record itself.

Is there a way to te

5条回答
  •  猫巷女王i
    2021-01-11 16:10

    The creationdate field should be added. You fix the ' hope that no one modifies it" part by adding a trigger on update that does not allow that field to be updated, ever.

提交回复
热议问题