Computed Column with Current DateTime?

前端 未结 2 1213
傲寒
傲寒 2021-01-20 01:22

I am trying to create a SQL Server 2008R2 Table column with automatically calculated current datetime for every row I insert.

I set Computed Column Specification valu

2条回答
  •  野性不改
    2021-01-20 01:28

    You can set the column's default value with the GETDATE(), with this you will get the current DateTime on every new row insert.

提交回复
热议问题