DateTime2与SQL Server中的DateTime

让人想犯罪 __ 提交于 2020-08-18 05:28:25

问题:

Which one: 哪一个:

is the recommended way to store date and time in SQL Server 2008+? 是在SQL Server 2008+中存储日期和时间推荐方法吗?

I'm aware of differences in precision (and storage space probably), but ignoring those for now, is there a best practice document on when to use what, or maybe we should just use datetime2 only? 我知道精度(和存储空间可能)的差异,但暂时忽略这些,是否有关于何时使用什么的最佳实践文档,或者我们应该只使用datetime2


解决方案:

参考一: https://stackoom.com/question/5b4R/DateTime-与SQL-Server中的DateTime
参考二: https://oldbug.net/q/5b4R/DateTime2-vs-DateTime-in-SQL-Server
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!