加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > MsSql教程 > 正文

是否已弃用SQL Server时间戳以及替换时使用的内容

发布时间:2020-12-12 06:49:25 所属栏目:MsSql教程 来源:网络整理
导读:T-SQL MSDN页说明 The timestamp syntax is deprecated. This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work,and plan to modify applications that currently use this feature.
T-SQL MSDN页说明

The timestamp syntax is deprecated.
This feature will be removed in a
future version of Microsoft SQL
Server. Avoid using this feature in
new development work,and plan to
modify applications that currently use
this feature.

这是否意味着建议SQL Server Timestamp数据类型也被弃用?如果是这样,应该使用什么来替换它,因为SQL Server DateTime数据类型不够精细,无法确保高事务记录可以标记唯一值.

解决方法

同一页说使用rowversion而不是timestamp.弃用是语法,而不是基础机制.你能想象他们取消对这种广泛使用的功能的支持吗? Fugghedaboudit.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读