What is difference between datetime and timestamp

前端 未结 4 1497
暗喜
暗喜 2020-11-29 08:42

What is difference between datetime and timestamp datatype in Sql Server?.

4条回答
  •  鱼传尺愫
    2020-11-29 09:36

    timestamp is the synonym for the rowversion data type and is subject to the behavior of data type synonyms. In DDL statements, use rowversion instead of timestamp wherever possible. In simple way to tell, It means the updating time of row. datetime means the time of creation of row. DateTime is constant and other is changeable as the real time and local time.

提交回复
热议问题