问题:
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
来源:oschina
链接:https://my.oschina.net/u/4432649/blog/4335977